From c6a71ed870321be673388b9380263e631bb1b857 Mon Sep 17 00:00:00 2001 From: "ho.namkoong" Date: Fri, 7 Mar 2014 16:55:28 +0900 Subject: [PATCH] SDB: fix prevent issues critical issue: resource leak Change-Id: I4c5e71de0d91f638ad922d725caf08abe60c88ac Signed-off-by: ho.namkoong --- src/file_sync_functions.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.34.1