Browse Source

whoops, actual leak fix

clementinecomputing 6 years ago
parent
commit
8832306989
1 changed files with 3 additions and 0 deletions
  1. 3 0
      busunit/passdb/rules.c

+ 3 - 0
busunit/passdb/rules.c

@@ -1285,6 +1285,8 @@ int load_rules(char *filename)
 
     if(!f)
     {
+        scheme_deinit(&scm);
+
         //complain violently if it fails to exist
         format_log_message(&logmsg, LOGLEVEL_ERROR, "File error loading %s library.", SCHEME_INIT_FILE);  
 
@@ -1293,6 +1295,7 @@ int load_rules(char *filename)
             send_message(commhub_fd, &logmsg);	//send this driver message to the log
         }    
 
+
         return -1;
     }