Fixed memory leak.
This commit is contained in:
parent
66412a082e
commit
915a08d592
@ -319,7 +319,10 @@ int DVCPluginEntry(IDRDYNVC_ENTRY_POINTS* pEntryPoints)
|
||||
context = (DispClientContext*) calloc(1, sizeof(DispClientContext));
|
||||
|
||||
if (!context)
|
||||
{
|
||||
free(disp);
|
||||
return -1;
|
||||
}
|
||||
|
||||
context->handle = (void*) disp;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user