printing: Remove invalid free from error path.
authorDavid Disseldorp <ddiss@samba.org>
Fri, 18 Jan 2013 10:48:20 +0000 (11:48 +0100)
committerAndreas Schneider <asn@samba.org>
Fri, 18 Jan 2013 14:37:10 +0000 (15:37 +0100)
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/printing/nt_printing_ads.c

index 87cab63ceb1a8eb9ada45bdaa9d5b6dcea3572bf..d888271bf9b2b4f8dc4d76407d3afbfc95f1af38 100644 (file)
@@ -167,7 +167,6 @@ static WERROR nt_printer_publish_ads(struct messaging_context *msg_ctx,
        mods = ads_init_mods(ctx);
 
        if (mods == NULL) {
-               SAFE_FREE(prt_dn);
                TALLOC_FREE(ctx);
                return WERR_NOMEM;
        }