diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index a78681bad89..4d4d9d22591 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));