From 915a08d592f7eb8dca147d7ba0e256936049bfdc Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 17 Nov 2014 00:56:05 +0100 Subject: [PATCH] Fixed memory leak. --- channels/disp/client/disp_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/channels/disp/client/disp_main.c b/channels/disp/client/disp_main.c index 7d56488..17ab47b 100644 --- a/channels/disp/client/disp_main.c +++ b/channels/disp/client/disp_main.c @@ -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; -- 2.7.4