]> git.sur5r.net Git - bacula/bacula/commitdiff
fix small memory leak with plugin directory on SD
authorEric Bollengier <eric@baculasystems.com>
Thu, 24 Nov 2011 19:33:37 +0000 (20:33 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:17 +0000 (14:50 +0200)
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);
       }