Re: Deallocating memory in isc code.

2011-06-08 Thread kalpesh varyani
Thanks for the information. The reason I asked these questions is that after incorporating these changes in builtin.c, memory leak is bein reported. Memory leak goes away on reverting the changes from builtin.c file. > > 1. Even if *builtin_t *empty; *is local to the function *builtin_create*, can

Re: Deallocating memory in isc code.

2011-06-08 Thread Mark Andrews
In message , kalpesh varyani writes: > Hi, > > Is it necessary to deallocate memory assigned using isc_mem_get() by > explicitly using isc_mem_free()? No. You use isc_mem_put(). See > Ref: File builtin.c is available at > ftp://1node.net/linux/bind-9.7.0b1/bin/named/*builtin*.*c*

Deallocating memory in isc code.

2011-06-08 Thread kalpesh varyani
Hi, Is it necessary to deallocate memory assigned using isc_mem_get() by explicitly using isc_mem_free()? Ref: File builtin.c is available at ftp://1node.net/linux/bind-9.7.0b1/bin/named/*builtin*.*c* Following is the code snippet: static