summaryrefslogtreecommitdiff
path: root/rpm.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-10-29 16:06:01 +0000
committerjbj <devnull@localhost>1999-10-29 16:06:01 +0000
commit1e0138188b4887431444d90395be0f2fac5c2db3 (patch)
tree921cdb01039a413878fd312ff4656c75dc32a4db /rpm.c
parent0d0b405c201b43f2eebc61257f5992931e1cdb0c (diff)
downloadrpm-1e0138188b4887431444d90395be0f2fac5c2db3.tar.gz
rpm-1e0138188b4887431444d90395be0f2fac5c2db3.tar.bz2
rpm-1e0138188b4887431444d90395be0f2fac5c2db3.zip
check for memory leaks (almost all leaks are plugged).
CVS patchset: 3403 CVS date: 1999/10/29 16:06:01
Diffstat (limited to 'rpm.c')
-rwxr-xr-xrpm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpm.c b/rpm.c
index bf99581ef..a4379e071 100755
--- a/rpm.c
+++ b/rpm.c
@@ -1361,7 +1361,12 @@ int main(int argc, const char ** argv)
}
/* keeps memory leak checkers quiet */
+ freeNames();
+ freeFilesystems();
if (qva->qva_queryFormat) xfree(qva->qva_queryFormat);
+#if HAVE_MCHECK_H && HAVE_MTRACE
+ muntrace(); /* Trace malloc only if MALLOC_TRACE=mtrace-output-file. */
+#endif
return ec;
}