diff options
-rw-r--r-- | source3/smbd/lanman.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index a78681bad8..4d4d9d2259 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -1082,6 +1082,7 @@ static int get_server_info(uint32 servertype, *servers = SMB_REALLOC_ARRAY(*servers,struct srv_info_struct, alloced); if (!*servers) { DEBUG(0,("get_server_info: failed to enlarge servers info struct!\n")); + file_lines_free(lines); return 0; } memset((char *)((*servers)+count),'\0',sizeof(**servers)*(alloced-count)); |