mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
* https://sourceforge.net/p/bacula/mailman/message/59121596/ * https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/commit/453dc8ef9e41ba21b7fc4b69ab49e5f31f40b067 PR: 284250
14 lines
446 B
C
14 lines
446 B
C
--- src/plugins/fd/bpipe-fd.c.orig 2024-03-22 09:48:41 UTC
|
|
+++ src/plugins/fd/bpipe-fd.c
|
|
@@ -202,7 +202,9 @@ static bRC freePlugin(bpContext *ctx)
|
|
if (!p_ctx) {
|
|
return bRC_Error;
|
|
}
|
|
- bfree_and_null(p_ctx->cmd);
|
|
+ if (p_ctx->cmd) {
|
|
+ free(p_ctx->cmd); /* free any allocated command string */
|
|
+ }
|
|
free_and_null_pool_memory(p_ctx->restore_obj_buf);
|
|
if (p_ctx->rop_writer) {
|
|
restoreobj *rop;
|