H
Harish
Hi,
I am newbie to this field, So can anyone clear my doubt. I have an
application that leaks memory recursively, but I don't find any cause
for that. I have checked for allocation and deallocation of every
piece of memory. All I can find is a double free on a buffer, which is
in an infinite loop.
Can a Double free bug cause memory leaks? My thinking is based on the
implementation of malloc/free, this causes memory corruption and in a
rare case the freed buffer may be reallocated in such a way that the
second free causes only a part of the buffer to be freed, or making it
impossible to free some other buffer. Does anyone agree with me?
Thanks in advance,
regards,
harish
I am newbie to this field, So can anyone clear my doubt. I have an
application that leaks memory recursively, but I don't find any cause
for that. I have checked for allocation and deallocation of every
piece of memory. All I can find is a double free on a buffer, which is
in an infinite loop.
Can a Double free bug cause memory leaks? My thinking is based on the
implementation of malloc/free, this causes memory corruption and in a
rare case the freed buffer may be reallocated in such a way that the
second free causes only a part of the buffer to be freed, or making it
impossible to free some other buffer. Does anyone agree with me?
Thanks in advance,
regards,
harish