diff --git a/src/curl.cpp b/src/curl.cpp index 4919292..27fe9be 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -2284,7 +2284,7 @@ int S3fsCurl::RequestPerform(bool dontAddAuthHeaders /*=false*/) } LastResponseCode = S3FSCURL_RESPONSECODE_NOTSET; - long responseCode; + long responseCode = S3FSCURL_RESPONSECODE_NOTSET; int result = S3FSCURL_PERFORM_RESULT_NOTSET; // 1 attempt + retries... diff --git a/src/mvnode.cpp b/src/mvnode.cpp index f47a7c8..3472445 100644 --- a/src/mvnode.cpp +++ b/src/mvnode.cpp @@ -34,23 +34,20 @@ MVNODE *create_mvnode(const char *old_path, const char *new_path, bool is_dir, b char *p_old_path; char *p_new_path; - p = new MVNODE(); - if(NULL == (p_old_path = strdup(old_path))){ - delete p; printf("create_mvnode: could not allocation memory for p_old_path\n"); S3FS_FUSE_EXIT(); return NULL; } if(NULL == (p_new_path = strdup(new_path))){ - delete p; free(p_old_path); printf("create_mvnode: could not allocation memory for p_new_path\n"); S3FS_FUSE_EXIT(); return NULL; } + p = new MVNODE(); p->old_path = p_old_path; p->new_path = p_new_path; p->is_dir = is_dir;