svn commit: samba r14032 - in trunk/source/rpc_server: .
jra at samba.org
jra at samba.org
Wed Mar 8 07:30:46 GMT 2006
Author: jra
Date: 2006-03-08 07:30:43 +0000 (Wed, 08 Mar 2006)
New Revision: 14032
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14032
Log:
Coverity bug CID #110. Free all resources correctly
on pipe initialization failure.
Jeremy.
Modified:
trunk/source/rpc_server/srv_pipe_hnd.c
Changeset:
Modified: trunk/source/rpc_server/srv_pipe_hnd.c
===================================================================
--- trunk/source/rpc_server/srv_pipe_hnd.c 2006-03-08 07:30:37 UTC (rev 14031)
+++ trunk/source/rpc_server/srv_pipe_hnd.c 2006-03-08 07:30:43 UTC (rev 14032)
@@ -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