samba-cvs.cvs
[Top] [All Lists]

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

Subject: svn commit: samba r14264 - in branches/SAMBA_3_0/source/rpc_server: .
From:
Date: Mon, 13 Mar 2006 00:23:25 +0000 GMT
Author: jra
Date: 2006-03-13 00:23:17 +0000 (Mon, 13 Mar 2006)
New Revision: 14264

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

Log:
Fix coverity #207. Resource leak on error path.
Jeremy.

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


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c       2006-03-13 
00:10:40 UTC (rev 14263)
+++ branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c       2006-03-13 
00:23:17 UTC (rev 14264)
@@ -6900,6 +6900,7 @@
                                                      architecture, version);
                        if (!W_ERROR_IS_OK(status)) {
                                SAFE_FREE(list);
+                               SAFE_FREE(driver_info_3);
                                return status;
                        }
                        fill_printer_driver_info_3(&driver_info_3[*returned+i], 
driver, servername);            

<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: samba r14264 - in branches/SAMBA_3_0/source/rpc_server: ., jra <=