fixed a double free bug on error in net export
authorAndrew Tridgell <tridge@samba.org>
Tue, 25 Aug 2009 06:59:25 +0000 (16:59 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 25 Aug 2009 06:59:25 +0000 (16:59 +1000)
source4/kdc/hdb-samba4.c

index d7822540cfb5cedc74b550993a2501026e5096b3..502b4e0903ecfbef6e1f5237452b450ee908cfb2 100644 (file)
@@ -1348,7 +1348,6 @@ static krb5_error_code hdb_samba4_seq(krb5_context context, HDB *db, unsigned fl
        }
 
        if (ret != 0) {
-               talloc_free(priv);
                db->hdb_dbc = NULL;
        } else {
                talloc_free(mem_ctx);