Fixed memory leak.

This commit is contained in:
Armin Novak 2014-11-16 15:44:02 +01:00
parent e20da04d15
commit 9ab5f4c222
1 changed files with 3 additions and 0 deletions

View File

@ -207,7 +207,10 @@ void *winpr_backtrace(DWORD size)
data->buffer = calloc(size, sizeof(void *));
if (!data->buffer)
{
free(data);
return NULL;
}
data->max = size;
data->used = backtrace(data->buffer, size);