summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2014-03-23 13:36:00 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2014-03-23 13:36:00 +0900
commit014183a1b7c69fed2430886bed57841368fe52ed (patch)
tree1647ab197957de408cf44bd3b7c89958ee838815 /src
parent461555e4cc44adcdf13ccb64d066180824fc75c9 (diff)
evas_gl: fix memory leak in case that version doesn't include dot
fix CID 1193479
Diffstat (limited to 'src')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_context.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_context.c b/src/modules/evas/engines/gl_common/evas_gl_context.c
index a699932..f34bd88 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_context.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_context.c
@@ -372,7 +372,11 @@ _evas_gl_common_version_check()
372 return 0; 372 return 0;
373 373
374 tmp = strchr(version, '.'); 374 tmp = strchr(version, '.');
375 if (!tmp) return 0; 375 if (!tmp)
376 {
377 free(version);
378 return 0;
379 }
376 /* the first '.' always exists */ 380 /* the first '.' always exists */
377 *tmp = '\0'; 381 *tmp = '\0';
378 major = atoi(version); 382 major = atoi(version);