From 43904cb4f5e775a5ba72553d1a59ffd30204a83d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 27 Aug 2012 19:46:11 +1000 Subject: s4-dsdb: Remove double-free in update_keytab module --- source4/dsdb/samdb/ldb_modules/update_keytab.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source4/dsdb/samdb') diff --git a/source4/dsdb/samdb/ldb_modules/update_keytab.c b/source4/dsdb/samdb/ldb_modules/update_keytab.c index f07d9b2aad..bec4a83abf 100644 --- a/source4/dsdb/samdb/ldb_modules/update_keytab.c +++ b/source4/dsdb/samdb/ldb_modules/update_keytab.c @@ -109,14 +109,12 @@ static int add_modified(struct ldb_module *module, struct ldb_dn *dn, bool do_de if (res->count != 1) { /* if it's not a kerberosSecret then we don't have anything to update */ talloc_free(res); - talloc_free(filter); return LDB_SUCCESS; } item = talloc(data->changed_dns? (void *)data->changed_dns: (void *)data, struct dn_list); if (!item) { talloc_free(res); - talloc_free(filter); return ldb_oom(ldb); } -- cgit