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>
This commit is contained in:
Chris Michael 2013-07-08 11:13:56 +01:00
parent a8bb3ec5ce
commit 2aa12782b6
1 changed files with 1 additions and 0 deletions

View File

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