aboutsummaryrefslogtreecommitdiffstats
path: root/epan/oids.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/oids.c')
-rw-r--r--epan/oids.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/oids.c b/epan/oids.c
index b30ed2d084..400f7b8ac6 100644
--- a/epan/oids.c
+++ b/epan/oids.c
@@ -660,8 +660,7 @@ static void register_mibs(void) {
}
}
- hf.hfinfo.strings = vals->data;
- g_array_free(vals,FALSE);
+ hf.hfinfo.strings = g_array_free(vals, FALSE);
}
#if 0 /* packet-snmp does not handle bits yet */
} else if (smiType->basetype == SMI_BASETYPE_BITS && ( smiEnum = smiGetFirstNamedNumber(smiType) )) {