![]() The macro contexts being static structs, they get their destructor automatically called at program end. Which counter-intuitively *causes* a leak if macros are stored in an STL container and rpmFreeMacros() isn't called, because then the container clears itself and the macros are left dangling, whereas without the destructor they are still reachable. freeMacros() obviously wants to be a member function but trying to keep things in the struct land for now. Doesn't really change anything as of now, but this is needed for moving the macro storage to C++ container. |
||
---|---|---|
.github | ||
build | ||
cmake | ||
docs | ||
fileattrs | ||
include/rpm | ||
lib | ||
misc | ||
plugins | ||
po@d5cc5d368e | ||
python | ||
rpmio | ||
scripts | ||
sign | ||
tests | ||
tools | ||
.dockerignore | ||
.gitignore | ||
.gitmodules | ||
.mailmap | ||
CMakeLists.txt | ||
CONTRIBUTING.md | ||
COPYING | ||
CREDITS | ||
INSTALL | ||
README | ||
config.h.in | ||
installplatform | ||
macros.in | ||
platform.in | ||
rpm.pc.in | ||
rpmpopt.in | ||
rpmrc.in |
README
This is RPM, the RPM Package Manager. The latest releases are always available at: http://rpm.org/download.html Additional RPM documentation (papers, slides, HOWTOs) can also be found at the same site: http://rpm.org. http://rpm.org/community all rpm related mailing lists. RPM was originally written by: Erik Troan <ewt@redhat.com> Marc Ewing <marc@redhat.com> See the CREDITS file for a list of folks who have helped us out tremendously. RPM is Copyright (c) 1998 by Red Hat Software, Inc., and may be distributed under the terms of the GPL and LGPL (see the file COPYING for details).