printing: Remove invalid free from error path.
authorDavid Disseldorp <ddiss@samba.org>
Fri, 18 Jan 2013 10:48:20 +0000 (11:48 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 22 Jan 2013 11:09:04 +0000 (12:09 +0100)
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/printing/nt_printing_ads.c

index 67046bc6fc521a902a8eaa15b2eb28aeefe2f0d2..694b2ef76f216559ec9a0e66131e3b8a9dde5ff8 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;
        }