Myfiles SVace Fixed 82/79882/1 submit/tizen_mobile/20160713.140216
authorshubham kumar <shubham.srib@samsung.com>
Wed, 13 Jul 2016 09:36:11 +0000 (15:06 +0530)
committershubham kumar <shubham.srib@samsung.com>
Wed, 13 Jul 2016 09:36:11 +0000 (15:06 +0530)
Change-Id: I66cc7a91a99090d85f898c92bfc4d0665e342e6e
Signed-off-by: shubham kumar <shubham.srib@samsung.com>
src/common/file-operation/mf-copy-internal.c

index 6ae94c0..7af8553 100755 (executable)
@@ -205,6 +205,7 @@ int _mf_copy_copy_regfile(const char *src, struct stat *src_statp, const char *d
                dst = g_strconcat(copy_folder, "/", name, NULL);
        }
        if (!dst) {
+               fclose(src_f);
                return -1;
        }
        mf_error("===================== copy_dst is [%s], dst is [%s]", copy_dst, dst);