devilhorns pushed a commit to branch master.
commit 23fc3b3da7f15de7821d4915c3b7398c73e3a048
Author: Chris Michael <[email protected]>
Date: Wed May 29 13:11:25 2013 +0100
Fix possible memory leak reported by klockwork.
Signed-off-by: Chris Michael <[email protected]>
---
src/modules/evas/engines/wayland_egl/evas_engine.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c
b/src/modules/evas/engines/wayland_egl/evas_engine.c
index 0cd3ac6..aa73bf4 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -2754,6 +2754,7 @@ eng_gl_context_create(void *data, void *share_context)
if (!ctx->context)
{
ERR("eglCreateContext() fail. code=%#x", eglGetError());
+ free(ctx);
return NULL;
}
--
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1