From: Eric Bollengier Date: Wed, 26 May 2021 08:30:21 +0000 (+0200) Subject: Fix memory problem in bpipe plugin X-Git-Tag: Beta-15.0.0~920 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a88c1f6ba5eced48ee0b1d079e88c84a11bce003;p=thirdparty%2Fbacula.git Fix memory problem in bpipe plugin --- diff --git a/bacula/src/plugins/fd/bpipe-fd.c b/bacula/src/plugins/fd/bpipe-fd.c index 34b3c7fd3..ae598d91d 100644 --- a/bacula/src/plugins/fd/bpipe-fd.c +++ b/bacula/src/plugins/fd/bpipe-fd.c @@ -202,9 +202,7 @@ static bRC freePlugin(bpContext *ctx) if (!p_ctx) { return bRC_Error; } - if (p_ctx->cmd) { - free(p_ctx->cmd); /* free any allocated command string */ - } + bfree_and_null(p_ctx->cmd); free_and_null_pool_memory(p_ctx->restore_obj_buf); if (p_ctx->rop_writer) { restoreobj *rop;