From: Eric Bollengier Date: Thu, 24 Nov 2011 19:33:37 +0000 (+0100) Subject: fix small memory leak with plugin directory on SD X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5124389adcd81d6b03c235cb217c86f5f53c828a;p=bacula%2Fbacula fix small memory leak with plugin directory on SD --- 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); }