R
Ramprasad A Padmanabhan
I am sorry for asking such a vague question.
I am having a program where I am allocating a char* variable some memory
and in the end of the loop freeing it. Funnily enough free hangs only
when a particular string is passed. A string longer , shorter or a
different string *does not* hang. This is totally repeatable.
This code is a part of a Sendmail/milter plugin , and I am not able to
replicate such a situtation to a stand alone program.
So are there any rules before I free() a malloc-ed char*
I am making sure I am not freeing a NULL variable
is there anything else
Thanks
Ram
I am having a program where I am allocating a char* variable some memory
and in the end of the loop freeing it. Funnily enough free hangs only
when a particular string is passed. A string longer , shorter or a
different string *does not* hang. This is totally repeatable.
This code is a part of a Sendmail/milter plugin , and I am not able to
replicate such a situtation to a stand alone program.
So are there any rules before I free() a malloc-ed char*
I am making sure I am not freeing a NULL variable
is there anything else
Thanks
Ram