]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix small memory leak with the restart command
authorEric Bollengier <eric@baculasystems.com>
Tue, 23 Aug 2016 12:40:44 +0000 (14:40 +0200)
committerKern Sibbald <kern@sibbald.com>
Tue, 20 Sep 2016 14:57:57 +0000 (16:57 +0200)
bacula/src/dird/ua_run.c

index f54df8f490f4818f369f64665ce1fe4ce77c9ab8..0aeb67696bb9e953b28f03dababc4c92d5f4fe34 100644 (file)
@@ -69,7 +69,12 @@ public:
    /* Methods */
    run_ctx() { memset(this, 0, sizeof(run_ctx));
                store = new USTORE; };
-   ~run_ctx() { delete store; };
+   ~run_ctx() {
+      delete store;
+      if (JobIds) {
+         delete JobIds;
+      }
+   };
 };
 
 /* Forward referenced subroutines */