vmod memory allocation problem
flygoast
flygoast at 126.com
Sun May 19 10:59:17 CEST 2013
hi, guys,
I'm newbie in varnish vmod development.
I'am comfusing when I return a char * pointting to a block of memory malloced from heap, Whether resultting in a memory leak?
Such as:
char *
vmod_foo(struct sess *sp, struct vmod_priv *priv)
{
return strdup("foo");
}
Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20130519/48ff3d68/attachment.html>
More information about the varnish-dev
mailing list