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