[pcre-dev] [Bug 1209] Calling pcre_free from C# causes a mem…

Kezdőlap
Üzenet törlése
Szerző: Philip Hazel
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 1209] Calling pcre_free from C# causes a memory access violation
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1209




--- Comment #3 from Philip Hazel <ph10@???> 2012-02-28 15:11:56 ---
> This might be a basic question but if pcre_free is a function pointer is
> this used to supply a function pointer to the pcre code to be called when
> the pcre dll needs to delete the compiled pcre structure returned from
> pcre_compile? Am I correct to assume that I need to free the pcre
> structure returned by pcre_compile to avoid a memory leak?


Did you manage to resolve this? I so, I would like to close this issue. By
default, pcre_free is a pointer to the system function free(), just as
pcre_malloc points to malloc(). They are indirected so that applications can
catch them if they need to.

Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email