summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-15 11:25:56 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-15 11:25:56 +0900
commit5dfe3789f225308069d4593e99cf38145601beb6 (patch)
tree13e4fffed462b7b63af4747892bc892074c928a9 /src
parentf1fa8de149b7622426acfd4ea4926e9d34a73e0d (diff)
evas - fb engine - fix mem leak if ioctl fails on fb mode
this fixes CID 1137852
Diffstat (limited to 'src')
-rw-r--r--src/bin/evas/evas_cserve2_usage.c1
-rw-r--r--src/modules/evas/engines/fb/evas_fb_main.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/evas/evas_cserve2_usage.c b/src/bin/evas/evas_cserve2_usage.c
index 3ab78a8383..462ba263e9 100644
--- a/src/bin/evas/evas_cserve2_usage.c
+++ b/src/bin/evas/evas_cserve2_usage.c
@@ -74,6 +74,7 @@ _server_connect(void)
74 len = strlen(remote.sun_path) + sizeof(remote.sun_family); 74 len = strlen(remote.sun_path) + sizeof(remote.sun_family);
75 if (connect(s, (struct sockaddr *)&remote, len) == -1) 75 if (connect(s, (struct sockaddr *)&remote, len) == -1)
76 { 76 {
77 close(s);
77 ERR("connect"); 78 ERR("connect");
78 return EINA_FALSE; 79 return EINA_FALSE;
79 } 80 }
diff --git a/src/modules/evas/engines/fb/evas_fb_main.c b/src/modules/evas/engines/fb/evas_fb_main.c
index 451171d97f..b958c924e2 100644
--- a/src/modules/evas/engines/fb/evas_fb_main.c
+++ b/src/modules/evas/engines/fb/evas_fb_main.c
@@ -322,6 +322,7 @@ fb_getmode(void)
322 if (ioctl(fb, FBIOGET_VSCREENINFO, &mode->fb_var) == -1) 322 if (ioctl(fb, FBIOGET_VSCREENINFO, &mode->fb_var) == -1)
323 { 323 {
324 perror("ioctl FBIOGET_VSCREENINFO"); 324 perror("ioctl FBIOGET_VSCREENINFO");
325 free(mode);
325 return NULL; 326 return NULL;
326 } 327 }
327 328