]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix small memory leak in dbcheck not calling free_pool_memory for name variable.
authorMarco van Wieringen <mvw@planets.elm.net>
Wed, 1 Jun 2011 18:56:07 +0000 (20:56 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:44:38 +0000 (14:44 +0200)
bacula/src/tools/dbcheck.c

index 2744977cef923e7cd46910fb5371248ffd1a50eb..a61b1c70dc03034e655e9f7a58314da3c9aac5d9 100644 (file)
@@ -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);
    }
 }