summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorho.namkoong <ho.namkoong@samsung.com>2014-03-07 16:55:28 +0900
committerho.namkoong <ho.namkoong@samsung.com>2014-03-07 16:55:28 +0900
commitc6a71ed870321be673388b9380263e631bb1b857 (patch)
tree83383e6e20f35ef915c9c540425570b2f3b3e1b7
parent1d854523310ed08defc24b80ea23ddab0961a3fe (diff)
downloadsdb-c6a71ed870321be673388b9380263e631bb1b857.tar.gz
sdb-c6a71ed870321be673388b9380263e631bb1b857.tar.bz2
sdb-c6a71ed870321be673388b9380263e631bb1b857.zip
SDB: fix prevent issues
critical issue: resource leak Change-Id: I4c5e71de0d91f638ad922d725caf08abe60c88ac Signed-off-by: ho.namkoong <ho.namkoong@samsung.com>
-rw-r--r--src/file_sync_functions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/file_sync_functions.c b/src/file_sync_functions.c
index b87981c..58f3ca2 100644
--- a/src/file_sync_functions.c
+++ b/src/file_sync_functions.c
@@ -581,6 +581,8 @@ int getdirlist_remote(int fd, char* src_dir, char* dst_dir, LIST_NODE** dirlist,
print_error(0, ERR_SITU_SYNC_STAT_FILE, ERR_REASON_GENERAL_UNKNOWN, file_name);
fprintf(stderr,"skipped: %s -> %s\n", src_full_path, dst_full_path);
sync_info->skipped++;
+ free(src_full_path);
+ free(dst_full_path);
continue;
}
st.st_size = ltohl(msg.dent.size);