]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/stored_conf.c
fix small memory leak with plugin directory on SD
[bacula/bacula] / bacula / src / stored / stored_conf.c
index c15e8a9fb1fa5406963a9b533ff79c839a0b5874..41613d7646994f6d19cc53feeabf0419e87276de 100644 (file)
@@ -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);
       }