From dece1a2db267eb7adf1560bc040763be919db592 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 7 Mar 2006 20:24:28 +0000 Subject: r13983: Fix Coverity bug # 111 (This used to be commit 08d7fd31ab250bc6ba3922b36aa7b0cfef1e5bf1) --- source3/smbd/lanman.c | 1 + 1 file changed, 1 insertion(+) 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)); -- cgit