diff options
author | Andreas Schneider <asn@samba.org> | 2013-12-04 14:01:58 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-12-06 01:14:09 +0100 |
commit | 1461d873a49fbc02b809d804e52627760a8714f7 (patch) | |
tree | c584ce075704f6396cdd26b0fd2117f8185ef340 /source3/libsmb/namequery.c | |
parent | 143907025b19ced780e7b1a3455de80d96eb0432 (diff) | |
download | samba-1461d873a49fbc02b809d804e52627760a8714f7.tar.gz samba-1461d873a49fbc02b809d804e52627760a8714f7.tar.xz samba-1461d873a49fbc02b809d804e52627760a8714f7.zip |
s3-libsmb: Fix a memory leak in get_pdc_ip().
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/libsmb/namequery.c')
-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 f2fffde8b4b..7d6d6bbdc07 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -2976,6 +2976,7 @@ bool get_pdc_ip(const char *domain, struct sockaddr_storage *pss) &count, lp_name_resolve_order()); if (!NT_STATUS_IS_OK(status)) { + SAFE_FREE(ip_list); return false; } } |