diff options
Diffstat (limited to 'epan/dissectors/packet-k12.c')
-rw-r--r-- | epan/dissectors/packet-k12.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-k12.c b/epan/dissectors/packet-k12.c index f7c5c1d52d..15a2ddbfb9 100644 --- a/epan/dissectors/packet-k12.c +++ b/epan/dissectors/packet-k12.c @@ -310,7 +310,7 @@ k12_update_cb(void* r, const char** err) gchar** protos; guint num_protos, i; - protos = ep_strsplit(h->protos,":",0); + protos = g_strsplit(h->protos,":",0); for (num_protos = 0; protos[num_protos]; num_protos++) g_strstrip(protos[num_protos]); @@ -321,11 +321,13 @@ k12_update_cb(void* r, const char** err) for (i = 0; i < num_protos; i++) { if ( ! (h->handles[i] = find_dissector(protos[i])) ) { h->handles[i] = data_handle; - *err = ep_strdup_printf("Could not find dissector for: '%s'",protos[i]); + g_strfreev(protos); + *err = g_strdup_printf("Could not find dissector for: '%s'",protos[i]); return; } } + g_strfreev(protos); *err = NULL; } |