Fixes malloc() and realloc() detection