]> git.sur5r.net Git - bacula/bacula/commitdiff
Free unused pool memory after restore
authorKern Sibbald <kern@sibbald.com>
Sun, 23 Jan 2011 11:01:49 +0000 (12:01 +0100)
committerKern Sibbald <kern@sibbald.com>
Mon, 24 Jan 2011 18:08:58 +0000 (19:08 +0100)
bacula/src/dird/ua_restore.c

index b6e3912a6def678eccda76158c19105d2022fc54..7393f5869caf411322d87b354c7bb4bc4b67d58d 100644 (file)
@@ -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;
 
 }