mirror of https://github.com/FreeRDP/FreeRDP
Fixed memory leak.
This commit is contained in:
parent
e20da04d15
commit
9ab5f4c222
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue