From f6b59fb29cb5334df20b3fa49dadac98de76024c Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 30 Nov 2020 11:01:41 +0100 Subject: [PATCH] Fix memory small loss in SD --- bacula/src/stored/stored_conf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bacula/src/stored/stored_conf.c b/bacula/src/stored/stored_conf.c index 118b0eb39..b5c74d51b 100644 --- a/bacula/src/stored/stored_conf.c +++ b/bacula/src/stored/stored_conf.c @@ -812,6 +812,9 @@ void free_resource(RES *sres, int type) if (res->res_store.scripts_directory) { free(res->res_store.scripts_directory); } + if (res->res_store.ssd_directory) { + free(res->res_store.ssd_directory); + } if (res->res_store.tls_ctx) { free_tls_context(res->res_store.tls_ctx); } -- 2.47.3