Don't free memory that we're going to use later.

svn path=/trunk/; revision=23841
This commit is contained in:
Gerald Combs 2007-12-11 21:17:55 +00:00
parent f4ad6f2ac0
commit 3254a8f9cb
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ static oid_info_t* add_oid(const char* name, oid_kind_t kind, const oid_value_ty
if (!g_str_equal(n->name,name)) {
D(2,("Renaming Oid from: %s -> %s, this means the same oid is registered more than once",n->name,name));
}
g_free(n->name);
/* XXX - Don't free n->name here. It may be part of an hf_register_info
* struct that has been appended to the hfa GArray. */
}
n->name = g_strdup(name);