forked from osmocom/wireshark
Plug a leak.
"field" might be allocated even if the calculation type is CALC_TYPE_BYTES, CALC_TYPE_FRAMES, or CALC_TYPE_FRAMES_AND_BYTES. Change-Id: I0c70397a89e32172769c277bebfd950f1d21c679 Reviewed-on: https://code.wireshark.org/review/26378 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
7ffc4f96eb
commit
ea754b6761
|
@ -1367,8 +1367,8 @@ register_io_tap(io_stat_t *io, int i, const char *filter)
|
|||
}
|
||||
break;
|
||||
}
|
||||
g_free(field);
|
||||
}
|
||||
g_free(field);
|
||||
|
||||
error_string = register_tap_listener("frame", &io->items[i], flt, TL_REQUIRES_PROTO_TREE, NULL,
|
||||
iostat_packet, i ? NULL : iostat_draw);
|
||||
|
|
Loading…
Reference in New Issue