From: Eric Bollengier Date: Tue, 23 Aug 2016 12:40:44 +0000 (+0200) Subject: Fix small memory leak with the restart command X-Git-Tag: Release-7.4.4~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aa18a0a479ef004b3d794a7f3734991e32dfd71;p=thirdparty%2Fbacula.git Fix small memory leak with the restart command --- diff --git a/bacula/src/dird/ua_run.c b/bacula/src/dird/ua_run.c index f54df8f49..0aeb67696 100644 --- a/bacula/src/dird/ua_run.c +++ b/bacula/src/dird/ua_run.c @@ -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 */