Fixed memory leak.
This commit is contained in:
parent
a2bbb265c1
commit
aa92017d86
@ -370,7 +370,10 @@ freerdp_listener* freerdp_listener_new(void)
|
|||||||
listener = (rdpListener*) calloc(1, sizeof(rdpListener));
|
listener = (rdpListener*) calloc(1, sizeof(rdpListener));
|
||||||
|
|
||||||
if (!listener)
|
if (!listener)
|
||||||
|
{
|
||||||
|
free (instance);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
listener->instance = instance;
|
listener->instance = instance;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user