Fixed memory leak.

This commit is contained in:
Armin Novak 2014-11-17 00:36:50 +01:00
parent a2bbb265c1
commit aa92017d86
1 changed files with 3 additions and 0 deletions

View File

@ -370,7 +370,10 @@ freerdp_listener* freerdp_listener_new(void)
listener = (rdpListener*) calloc(1, sizeof(rdpListener));
if (!listener)
{
free (instance);
return NULL;
}
listener->instance = instance;