ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] GRegex - Freeing regex space necessary?

Date Prev · Date Next · Thread Prev · Thread Next
From: Alex Lindberg <alindber@xxxxxxxxx>
Date: Thu, 30 Jun 2011 08:44:34 -0700 (PDT)
I am moving my custom dissectors from pcre to GRegex.  The GRegex docs talk about the need to free memory (g_match_info_free, g_free_error, etc).

Is it necessary to expliitly free these memory structures used during a RegEx search or will these be taken care of by epan/emem.h or can these RegEx memory structures be declared as part of the ep_ or se_ space?

In my case, these memory structures are only needed during a single packet dissection (ep_ type memory requirements).

Thanks as always.
Alex Lindberg