s4:hdb-samba4 - Don't double-free "db"
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Tue, 13 Oct 2009 15:36:58 +0000 (17:36 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Tue, 13 Oct 2009 15:36:58 +0000 (17:36 +0200)
"db" is freed anyway after the destructor terminates so this does really make
no sense here (rather it makes code crash).

Should fix bug #6801.

source4/kdc/hdb-samba4.c

index 4062e13f6c17f8778eba9a5c19a8c380a9d0adde..bed6ee972593b3469fa8c6e35d3ae62195249bb8 100644 (file)
@@ -1442,7 +1442,6 @@ 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)
 {
-       talloc_free(db);
        return 0;
 }