]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix small memory leak with setbandwidth command
authorEric Bollengier <eric@baculasystems.com>
Tue, 28 Mar 2023 15:39:01 +0000 (17:39 +0200)
committerEric Bollengier <eric@baculasystems.com>
Tue, 2 May 2023 07:07:18 +0000 (09:07 +0200)
bacula/src/dird/ua_cmds.c

index 3b0aaf37f95dc2d4b262493e9765221673dfdb4d..617a57779df5680c8b6f2b49b64a578d5b5a5337 100644 (file)
@@ -829,7 +829,7 @@ static int setbwlimit_cmd(UAContext *ua, const char *cmd)
          setbwlimit_client(ua, client, Job, limit);
          free_jcr(jcr);
       }
-
+      delete jcrs;
    } else {
       client = get_client_resource(ua, JT_BACKUP_RESTORE);
       if (client) {