summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_tty.c
diff options
context:
space:
mode:
authorSeunghun Lee <shiin.lee@samsung.com>2014-12-10 08:02:45 -0500
committerChris Michael <cp.michael@samsung.com>2014-12-10 08:02:52 -0500
commit7ac40208748c438ae144ca0adebc0cd7df0ba1ab (patch)
tree2298b062416b0e161d01b8986d50b21183d72e7d /src/lib/ecore_drm/ecore_drm_tty.c
parent8b573930c7a42772919909be52ad4111f97a9e27 (diff)
ecore-drm: cleanup data when failed to setup tty.
Summary: added code to free string of tty's name when failed to setup tty. @fix Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1763
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_tty.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm_tty.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_tty.c b/src/lib/ecore_drm/ecore_drm_tty.c
index 5f5c4c5391..86482e2f06 100644
--- a/src/lib/ecore_drm/ecore_drm_tty.c
+++ b/src/lib/ecore_drm/ecore_drm_tty.c
@@ -230,6 +230,11 @@ ecore_drm_tty_open(Ecore_Drm_Device *dev, const char *name)
230 { 230 {
231 close(dev->tty.fd); 231 close(dev->tty.fd);
232 dev->tty.fd = -1; 232 dev->tty.fd = -1;
233 if (dev->tty.name)
234 {
235 eina_stringshare_del(dev->tty.name);
236 dev->tty.name = NULL;
237 }
233 return EINA_FALSE; 238 return EINA_FALSE;
234 } 239 }
235 240