s3: Fix Coverity ID 2686 -- RESOURCE_LEAK
authorVolker Lendecke <vl@samba.org>
Thu, 19 Apr 2012 13:30:06 +0000 (15:30 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 19 Apr 2012 18:52:27 +0000 (20:52 +0200)
source3/nmbd/nmbd_processlogon.c

index 76864e640ee9218cea5d0bb2d2c54936539bf9d5..ca77ebf1d2e5abe207806f0a9de140f9f204d2af 100644 (file)
@@ -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;
                }