From: Kim Gunsoo Date: Mon, 7 Sep 2015 06:40:39 +0000 (+0900) Subject: Fix the double free case for auto-complete routine. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9dfac1f22362278959a41b7b4eb5ccead079bd73;p=sdk%2Ftools%2Fsdb.git Fix the double free case for auto-complete routine. - When using the push auto-complete routine, the double free is occurred. - Remove the duplicated close call. Change-Id: Id13eef99c928804f922232061dd1bd68cb317f12 Signed-off-by: Kim Gunsoo --- diff --git a/src/auto_complete.c b/src/auto_complete.c index 0acb299..6766155 100644 --- a/src/auto_complete.c +++ b/src/auto_complete.c @@ -569,7 +569,6 @@ static void print_local_dirlist(char* src_dir, char** not_complete_char) { finalize: closedir(d); - SAFE_FREE(src_dir); } static void print_remote_dirlist_with_complete_flag(int argc, char** argv) {