rwfpl / rewolf-wow64ext

Helper library for x86 programs that runs under WOW64 layer on x64 versions of Microsoft Windows operating systems.
936 stars 299 forks source link

Allocated memory is not released ! #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
You forgot to free memory allocated by malloc at lines 259, 313, 301, 307 :

Original issue reported on code.google.com by chris.st...@gmail.com on 23 Oct 2013 at 7:15

GoogleCodeExporter commented 9 years ago
It's freed, look at WATCH() macro:

#define WATCH(ptr) \
    CMemPtr watch_##ptr((void**)&ptr)

It's kind of auto_ptr, memory is freed at the end of the block.

Original comment by g...@rewolf.pl on 23 Oct 2013 at 7:31

GoogleCodeExporter commented 9 years ago
Missleading name, didn't check that deeply. Sorry for reporting then.

Original comment by chris.st...@gmail.com on 24 Oct 2013 at 5:28