devilhorns pushed a commit to branch master.
commit 2aa12782b66c2ae23784a9c0a6d9e0242ed012ea
Author: Chris Michael <[email protected]>
Date: Mon Jul 8 11:13:56 2013 +0100
If we open a file for copying, then we should also Close that file
when the copy is done.
NB: Fixes Coverity CID1039181
Signed-off-by: Chris Michael <[email protected]>
---
src/lib/eina/eina_file_common.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c
index d012dea..37105d5 100644
--- a/src/lib/eina/eina_file_common.c
+++ b/src/lib/eina/eina_file_common.c
@@ -570,6 +570,7 @@ eina_file_copy(const char *src, const char *dst,
Eina_File_Copy_Flags flags, Ein
}
end:
+ close(d);
close(s);
if (!success)
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev