aboutsummaryrefslogtreecommitdiffstats
path: root/epan/oids.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2007-12-11 21:17:55 +0000
committerGerald Combs <gerald@wireshark.org>2007-12-11 21:17:55 +0000
commit3254a8f9cb1ff5713a9f40675211176f2193e5c3 (patch)
tree5add8207a368bbd9e48344d18c0ca748eeeeedb0 /epan/oids.c
parentf4ad6f2ac001aa66a69b48734a6d2ca8beb3a295 (diff)
Don't free memory that we're going to use later.
svn path=/trunk/; revision=23841
Diffstat (limited to 'epan/oids.c')
-rw-r--r--epan/oids.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/oids.c b/epan/oids.c
index 247e18b40a..a8354e91d3 100644
--- a/epan/oids.c
+++ b/epan/oids.c
@@ -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);