fixed a memory leak
authorAndrew Tridgell <tridge@samba.org>
Tue, 2 May 2000 07:10:26 +0000 (07:10 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 2 May 2000 07:10:26 +0000 (07:10 +0000)
source/rpc_server/srv_spoolss_nt.c

index 2680c3a553d06b8949554a309842731cefa0cf55..6a0323f8504caebe39d22f7d7d8f862480db867f 100644 (file)
@@ -3710,6 +3710,8 @@ uint32 _spoolss_addprinterdriver( const UNISTR2 *server_name,
        if (add_a_printer_driver(driver, level)!=0)
                return ERROR_ACCESS_DENIED;
 
+       safe_free(driver.info_3);
+
        return NT_STATUS_NO_PROBLEMO;
 }