Close file descriptor when the session is terminated

This commit is contained in:
Daniel Zaoui 2017-03-06 09:22:02 +02:00
parent 5f268ec26a
commit cd8b2fc66b
1 changed files with 2 additions and 8 deletions

View File

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