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:
Guy Harris 2018-03-08 18:12:33 -08:00
parent 7ffc4f96eb
commit ea754b6761
1 changed files with 1 additions and 1 deletions

View File

@ -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);