File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -588,7 +588,6 @@ ds3_error* net_process_request(const ds3_client* client,
588588 }
589589 ds3_string_multimap_free (response_headers );
590590 ds3_str_free (response_data .status_message );
591- g_free (url );
592591
593592 if (response_data .status_code == 307 ) {
594593 ds3_log_message (client -> log , DS3_INFO , "Request encountered a 307 redirect" );
@@ -601,9 +600,11 @@ ds3_error* net_process_request(const ds3_client* client,
601600 error -> message = ds3_str_init ("Encountered too many redirects while attempting to fulfill the request" );
602601 error -> code = DS3_ERROR_TOO_MANY_REDIRECTS ;
603602 } else {
603+ ds3_error_free (error );
604604 continue ;
605605 }
606606 }
607+ g_free (url );
607608 return error ;
608609 }
609610 g_byte_array_free (response_data .body , TRUE);
You can’t perform that action at this time.
0 commit comments