summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-07-08 11:13:56 +0100
committerChris Michael <cp.michael@samsung.com>2013-07-08 11:13:56 +0100
commit2aa12782b66c2ae23784a9c0a6d9e0242ed012ea (patch)
treed8e27772025b995ad79661845278ebb919c38837 /src/lib
parenta8bb3ec5cedafc6aeecb8be0baed84313bcbcede (diff)
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 <cp.michael@samsung.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/eina/eina_file_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c
index d012deaec7..37105d56d6 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
570 } 570 }
571 571
572 end: 572 end:
573 close(d);
573 close(s); 574 close(s);
574 575
575 if (!success) 576 if (!success)