summaryrefslogtreecommitdiff
path: root/rpm.c
diff options
context:
space:
mode:
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;
}