From 2aa18a0a479ef004b3d794a7f3734991e32dfd71 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 23 Aug 2016 14:40:44 +0200 Subject: [PATCH] Fix small memory leak with the restart command --- bacula/src/dird/ua_run.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 */ -- 2.39.5