Fixed memory leak.

This commit is contained in:
Armin Novak 2014-11-17 00:56:05 +01:00
parent 66412a082e
commit 915a08d592

View File

@ -319,7 +319,10 @@ int DVCPluginEntry(IDRDYNVC_ENTRY_POINTS* pEntryPoints)
context = (DispClientContext*) calloc(1, sizeof(DispClientContext)); context = (DispClientContext*) calloc(1, sizeof(DispClientContext));
if (!context) if (!context)
{
free(disp);
return -1; return -1;
}
context->handle = (void*) disp; context->handle = (void*) disp;