From 5df0eefe213d749bdaad308769b68dc48bd987b3 Mon Sep 17 00:00:00 2001 From: Gwanglim Lee Date: Tue, 24 May 2016 12:54:10 +0900 Subject: [PATCH] e_info_protocol: added missing close for opened file. Change-Id: I02af8900a73d99453e7c9890a0f58aa456625635 --- src/bin/e_info_protocol.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bin/e_info_protocol.c b/src/bin/e_info_protocol.c index 8df80fc..89eb781 100644 --- a/src/bin/e_info_protocol.c +++ b/src/bin/e_info_protocol.c @@ -839,12 +839,14 @@ _e_info_protocol_rule_file_set(const char *filename, char *reply, int *len) pfs += (strlen(new_argv[2]) + 1); if (!e_info_protocol_rule_set((const int) new_argc, (const char**) new_argv, reply, len)) - return EINA_FALSE; + { + close(fd); + return EINA_FALSE; + } } - if (fd >= 0) - close(fd); + close(fd); return EINA_TRUE; } -- 2.7.4