From 42df51222baad37dd2717036900120655551cc3e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 6 Mar 2006 19:48:00 +0000 Subject: [PATCH] r13889: Fix resource leak on error path. Coverity bug CID #73. Jeremy. (This used to be commit 46e10980927f1dfa4a1995e778df880cf823cbdb) --- source3/libsmb/namequery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index 1520e6cec20..6449de0e0ec 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -960,6 +960,7 @@ static BOOL resolve_lmhosts(const char *name, int name_type, (*return_count)+1); if ((*return_iplist) == NULL) { + endlmhosts(fp); DEBUG(3,("resolve_lmhosts: malloc fail !\n")); return False; } -- 2.11.4.GIT