[server] minor memory leak bug fix during access.conf parsing found by Coverity
authorMichael Rash <mbr@cipherdyne.org>
Tue, 14 May 2013 00:38:39 +0000 (20:38 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Tue, 14 May 2013 00:38:39 +0000 (20:38 -0400)
server/access.c

index d690e2f..88ca7fd 100644 (file)
@@ -1392,6 +1392,7 @@ acc_check_port_access(acc_stanza_t *acc, char *port_str)
     if(add_port_list_ent(&in_pl, buf) == 0)
     {
         log_msg(LOG_ERR, "Invalid proto/port string");
+        free_acc_port_list(in_pl);
         return 0;
     }