diff options
author | Peter Wu <peter@lekensteyn.nl> | 2018-03-25 23:24:59 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-03-27 04:51:00 +0000 |
commit | 802223829e9899638557c4cf13a5a643d96a0385 (patch) | |
tree | 2899e282a67eebf55522b00870ac52d5b653de78 /epan/tap.h | |
parent | 3b042a717258e331f670bfc322e59d4b191a93db (diff) |
tap: fix remaining potential memleaks with register_tap_listener
Additionally, add an attribute to the tap function to prevent future
callers from leaking this memory.
Change-Id: Ief6af2bbc74d19153628f09d7b273e85cb2284ab
Reviewed-on: https://code.wireshark.org/review/26642
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/tap.h')
-rw-r--r-- | epan/tap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/tap.h b/epan/tap.h index 7b13c2fc15..dfd274423e 100644 --- a/epan/tap.h +++ b/epan/tap.h @@ -208,7 +208,7 @@ WS_DLL_PUBLIC void draw_tap_listeners(gboolean draw_all); WS_DLL_PUBLIC GString *register_tap_listener(const char *tapname, void *tapdata, const char *fstring, guint flags, tap_reset_cb tap_reset, - tap_packet_cb tap_packet, tap_draw_cb tap_draw); + tap_packet_cb tap_packet, tap_draw_cb tap_draw) G_GNUC_WARN_UNUSED_RESULT; /** This function sets a new dfilter to a tap listener */ WS_DLL_PUBLIC GString *set_tap_dfilter(void *tapdata, const char *fstring); |