From: Volker Lendecke Date: Thu, 19 Apr 2012 13:30:06 +0000 (+0200) Subject: s3: Fix Coverity ID 2686 -- RESOURCE_LEAK X-Git-Tag: samba-4.0.0alpha20~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e573f114681533425eded76f1322a9327308c40e;p=thirdparty%2Fsamba.git s3: Fix Coverity ID 2686 -- RESOURCE_LEAK --- diff --git a/source3/nmbd/nmbd_processlogon.c b/source3/nmbd/nmbd_processlogon.c index 76864e640ee..ca77ebf1d2e 100644 --- a/source3/nmbd/nmbd_processlogon.c +++ b/source3/nmbd/nmbd_processlogon.c @@ -505,6 +505,7 @@ logons are not enabled.\n", inet_ntoa(p->ip) )); status = push_nbt_netlogon_response(&blob_out, talloc_tos(), &response); if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("process_logon_packet: failed to push packet\n")); + SAFE_FREE(source_addr); return; }