summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-13 21:16:52 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-13 21:26:05 +0900
commite4b029da0b237745314d5d28609f3f81d479215f (patch)
tree3d4bdeeb2e9f052c460574ef45835f71fdc123ee /src/lib/eina
parent5d6e30fae04a5d2aca3daf8eab5fe0d60b870330 (diff)
eina - eina_file - fix leak of fd is fd is 0
this should fix CID 1039181
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_file_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c
index f6ae3bed5e..47215079cd 100644
--- a/src/lib/eina/eina_file_common.c
+++ b/src/lib/eina/eina_file_common.c
@@ -884,7 +884,7 @@ eina_file_copy(const char *src, const char *dst, Eina_File_Copy_Flags flags, Ein
884 } 884 }
885 885
886 end: 886 end:
887 if (d > 0) close(d); 887 if (d >= 0) close(d);
888 close(s); 888 close(s);
889 889
890 if (!success) 890 if (!success)