Only free ext on replace

This commit is contained in:
Love Hörnquist Åstrand
2011-07-24 20:23:30 -07:00
parent f1c1e1bc6e
commit 74ec640500

View File

@@ -250,10 +250,9 @@ hdb_add_current_keys_to_history(krb5_context context, hdb_entry *entry)
}
out:
if (ext) {
if (replace && ext) {
free_HDB_extension(ext);
if (replace)
free(ext);
free(ext);
}
return ret;
}