From d62777dce70f9edaf0c16f6fcb76e21e8ea34aee Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Wed, 1 Jun 2011 20:56:07 +0200 Subject: [PATCH] Fix small memory leak in dbcheck not calling free_pool_memory for name variable. --- bacula/src/tools/dbcheck.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bacula/src/tools/dbcheck.c b/bacula/src/tools/dbcheck.c index 2744977cef..a61b1c70dc 100644 --- a/bacula/src/tools/dbcheck.c +++ b/bacula/src/tools/dbcheck.c @@ -1248,6 +1248,7 @@ static void repair_bad_filenames() } db_sql_query(db, buf, NULL, NULL); } + free_pool_memory(name); } } @@ -1309,6 +1310,7 @@ static void repair_bad_paths() } db_sql_query(db, buf, NULL, NULL); } + free_pool_memory(name); } } -- 2.39.5