Fix possible memory leak reported by klockwork.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-05-29 13:11:25 +01:00
parent c8256f5fae
commit 23fc3b3da7
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}