s3-printing: Fix obvious memory leak in printer_list_get_printer().
authorJeremy Allison <jra@samba.org>
Tue, 25 Feb 2014 00:18:31 +0000 (16:18 -0800)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 25 Feb 2014 12:19:37 +0000 (13:19 +0100)
https://bugzilla.samba.org/show_bug.cgi?id=9993

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Feb 25 13:19:37 CET 2014 on sn-devel-104

source3/printing/printer_list.c

index a64775dfd8eadc5847efa1cc7e097534cb923ea2..4a66b96e19e7c255072eb89c2c4e07761265dcd5 100644 (file)
@@ -134,6 +134,7 @@ NTSTATUS printer_list_get_printer(TALLOC_CTX *mem_ctx,
 done:
        SAFE_FREE(nstr);
        SAFE_FREE(cstr);
+       SAFE_FREE(lstr);
        TALLOC_FREE(key);
        return status;
 }