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!
_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to