From: Kern Sibbald Date: Sun, 23 Jan 2011 11:01:49 +0000 (+0100) Subject: Free unused pool memory after restore X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=20b328bbe459db7e7f4ae8c80025ee96c5dedd75;p=bacula%2Fbacula Free unused pool memory after restore --- diff --git a/bacula/src/dird/ua_restore.c b/bacula/src/dird/ua_restore.c index b6e3912a6d..7393f5869c 100644 --- a/bacula/src/dird/ua_restore.c +++ b/bacula/src/dird/ua_restore.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2002-2010 Free Software Foundation Europe e.V. + Copyright (C) 2002-2011 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -46,7 +46,6 @@ extern void print_bsr(UAContext *ua, RBSR *bsr); - /* Forward referenced functions */ static int last_full_handler(void *ctx, int num_fields, char **row); static int jobid_handler(void *ctx, int num_fields, char **row); @@ -295,6 +294,7 @@ int restore_cmd(UAContext *ua, const char *cmd) parse_ua_args(ua); run_cmd(ua, ua->cmd); free_rx(&rx); + close_memory_pool(); /* release freed pool memory */ return 1; bail_out: @@ -311,6 +311,7 @@ bail_out: } free_rx(&rx); + close_memory_pool(); /* release freed pool memory */ return 0; }