Fixed memory leak.

This commit is contained in:
Armin Novak 2014-11-17 00:36:50 +01:00
parent a2bbb265c1
commit aa92017d86

View File

@ -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;