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: https://git.sur5r.net/?a=commitdiff_plain;h=2aa18a0a479ef004b3d794a7f3734991e32dfd71;p=bacula%2Fbacula 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 f54df8f490..0aeb67696b 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 */