From 4c0bf8d75dcaca833da2bc8b284d4ddf1d698f64 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 6 Mar 2006 19:30:34 +0000 Subject: r13884: Fix coverity CID #95. Resource leak on error path. Jeremy. (This used to be commit f4bf550b5757024b41062784b185b52a1a0e11f4) --- source3/nmbd/nmbd_packets.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c index c25473c4fb..0f84b4f771 100644 --- a/source3/nmbd/nmbd_packets.c +++ b/source3/nmbd/nmbd_packets.c @@ -536,6 +536,8 @@ void queue_wins_refresh(struct nmb_name *nmbname, userdata = (struct userdata_struct *)SMB_MALLOC(sizeof(*userdata) + strlen(tag) + 1); if (!userdata) { + p->locked = False; + free_packet(p); DEBUG(0,("Failed to allocate userdata structure!\n")); return; } -- cgit