svn commit: samba r14031 - in branches/SAMBA_3_0/source/rpc_server: .

jra at samba.org jra at samba.org
Wed Mar 8 07:30:37 GMT 2006


Author: jra
Date: 2006-03-08 07:30:37 +0000 (Wed, 08 Mar 2006)
New Revision: 14031

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14031

Log:
Coverity bug CID #110. Free all resources correctly
on pipe initialization failure.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_pipe_hnd.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_pipe_hnd.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_pipe_hnd.c	2006-03-08 07:20:11 UTC (rev 14030)
+++ branches/SAMBA_3_0/source/rpc_server/srv_pipe_hnd.c	2006-03-08 07:30:37 UTC (rev 14031)
@@ -330,6 +330,8 @@
 		DEBUG(0,("open_rpc_pipe_p: malloc fail for in_data struct.\n"));
 		talloc_destroy(p->mem_ctx);
 		talloc_destroy(p->pipe_state_mem_ctx);
+		close_policy_by_pipe(p);
+		SAFE_FREE(p);
 		return NULL;
 	}
 



More information about the samba-cvs mailing list