From: Marco van Wieringen Date: Wed, 1 Jun 2011 18:56:07 +0000 (+0200) Subject: Fix small memory leak in dbcheck not calling free_pool_memory for name variable. X-Git-Tag: Release-7.0.0~917 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bec39311e23dae21e9fd6b11f03934e06ab0fed7;p=bacula%2Fbacula Fix small memory leak in dbcheck not calling free_pool_memory for name variable. --- 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); } }