diff options
author | Jeremy Allison <jra@samba.org> | 2006-03-06 19:48:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:10:58 -0500 |
commit | 42df51222baad37dd2717036900120655551cc3e (patch) | |
tree | 1897abef13a4b64cd7d4b5ed6e6c69b80d2e81d6 | |
parent | 4d79117c6d6507fb183298882d82bfba1f857753 (diff) | |
download | samba-42df51222baad37dd2717036900120655551cc3e.tar.gz samba-42df51222baad37dd2717036900120655551cc3e.tar.bz2 samba-42df51222baad37dd2717036900120655551cc3e.zip |
r13889: Fix resource leak on error path. Coverity bug CID #73.
Jeremy.
(This used to be commit 46e10980927f1dfa4a1995e778df880cf823cbdb)
-rw-r--r-- | source3/libsmb/namequery.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index 1520e6cec2..6449de0e0e 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; } |