From: Eric Bollengier Date: Mon, 21 Nov 2022 13:58:59 +0000 (+0100) Subject: Fix memory leak with RestoreObject compression X-Git-Tag: Beta-15.0.0~347 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a1996e6374708c5aaea5ab58cefaa58bc7554de;p=thirdparty%2Fbacula.git Fix memory leak with RestoreObject compression --- diff --git a/bacula/src/filed/backup.c b/bacula/src/filed/backup.c index a1a4b656b..dac29f88c 100644 --- a/bacula/src/filed/backup.c +++ b/bacula/src/filed/backup.c @@ -1207,6 +1207,7 @@ bool encode_and_send_attributes(bctx_t &bctx) } else { /* Uncompressed object smaller, use it */ comp_len = ff_pkt->restore_obj.object_len; + free_pool_memory(comp_obj); } Dmsg2(100, "Object compressed from %d to %d bytes\n", ff_pkt->restore_obj.object_len, comp_len); }