jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=cd8b2fc66bebff1def76db2e54c87a062256aa9b

commit cd8b2fc66bebff1def76db2e54c87a062256aa9b
Author: Daniel Zaoui <[email protected]>
Date:   Mon Mar 6 09:22:02 2017 +0200

    Close file descriptor when the session is terminated
---
 src/lib/eina/eina_debug.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/lib/eina/eina_debug.c b/src/lib/eina/eina_debug.c
index f8c62095e5..51d854ba29 100644
--- a/src/lib/eina/eina_debug.c
+++ b/src/lib/eina/eina_debug.c
@@ -215,15 +215,9 @@ eina_debug_disable()
 EAPI void
 eina_debug_session_terminate(Eina_Debug_Session *session)
 {
-   /* FIXME: Maybe just close fd here so the thread terminates its own session 
by itself */
+   /* Close fd here so the thread terminates its own session by itself */
    if (!session) return;
-
-   _opcode_reply_info *info = NULL;
-
-   EINA_LIST_FREE(session->opcode_reply_infos, info) free(info);
-
-   free(session->cbs);
-   free(session);
+   close(session->fd_in);
 }
 
 EAPI void

-- 


Reply via email to