Wireshark-dev: Re: [Wireshark-dev] [libsmi] Re: Building libsmi from SVN as a .dll

From: Juergen Schoenwaelder <j.schoenwaelder@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Apr 2008 16:28:05 +0200
On Wed, Apr 16, 2008 at 09:22:38AM +1000, Andrew Hood wrote:
 
> Adding smiFree to smi.h and EXPORTing it from the DLL lets the memory
> that is currently being leaked be freed. Juergen agrees this is OK. If
> have added these to smi.h and EXPORTed them:
> 
> extern void *smiMalloc(size_t size);
> extern void *smiRealloc(void *ptr, size_t size);
> extern char *smiStrdup(const char *s1);
> extern char *smiStrndup(const char *s1, size_t n);
> extern void smiFree(void *ptr);

These functions are now exported (r8062) in smi.h.

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1, 28759 Bremen, Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>