From 3bb8b5bf00cc43ebe77c39de486d46ae937f5c00 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 24 Nov 2011 20:33:37 +0100 Subject: [PATCH] fix small memory leak with plugin directory on 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 c15e8a9fb1..41613d7646 100644 --- a/bacula/src/stored/stored_conf.c +++ b/bacula/src/stored/stored_conf.c @@ -475,6 +475,9 @@ void free_resource(RES *sres, int type) if (res->res_store.subsys_directory) { free(res->res_store.subsys_directory); } + if (res->res_store.plugin_directory) { + free(res->res_store.plugin_directory); + } if (res->res_store.scripts_directory) { free(res->res_store.scripts_directory); } -- 2.39.5