Revert "s4:hdb-samba4 - Don't double-free "db""
authorAndrew Bartlett <abartlet@samba.org>
Tue, 13 Oct 2009 22:10:01 +0000 (09:10 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 13 Oct 2009 23:20:02 +0000 (10:20 +1100)
This reverts commit 11a8a54c825a52d7dd6ab78bc7aeff2d719327d2.

The actual fix for bug 6801 is in hdb_end_seq_get() - this attempt
leaks 'db' instead.

Andrew Bartlett

source4/kdc/hdb-samba4.c

index bed6ee972593b3469fa8c6e35d3ae62195249bb8..4062e13f6c17f8778eba9a5c19a8c380a9d0adde 100644 (file)
@@ -1442,6 +1442,7 @@ static krb5_error_code hdb_samba4_nextkey(krb5_context context, HDB *db, unsigne
 
 static krb5_error_code hdb_samba4_destroy(krb5_context context, HDB *db)
 {
 
 static krb5_error_code hdb_samba4_destroy(krb5_context context, HDB *db)
 {
+       talloc_free(db);
        return 0;
 }
 
        return 0;
 }