Skip to content

Commit

Permalink
Fix type conversion with selections
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Feb 28, 2024
1 parent b82f322 commit 3720b46
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 99 deletions.
7 changes: 2 additions & 5 deletions src/rest_vol.c
Original file line number Diff line number Diff line change
Expand Up @@ -3661,11 +3661,8 @@ RV_curl_multi_perform(CURL *curl_multi_handle, dataset_transfer_info *transfer_i
transfer_info[handle_index].curl_easy_handle = NULL;

if (transfer_info[handle_index].transfer_type == WRITE) {
RV_free(transfer_info[handle_index].u.write_info.write_body);
transfer_info[handle_index].u.write_info.write_body = NULL;

RV_free(transfer_info[handle_index].u.write_info.base64_encoded_values);
transfer_info[handle_index].u.write_info.base64_encoded_values = NULL;
RV_free(transfer_info[handle_index].u.write_info.alloc_write_buffer);
transfer_info[handle_index].u.write_info.alloc_write_buffer = NULL;
}

RV_free(transfer_info[handle_index].request_url);
Expand Down
6 changes: 2 additions & 4 deletions src/rest_vol.h
Original file line number Diff line number Diff line change
Expand Up @@ -569,9 +569,8 @@ struct RV_object_t {

/* Structures to hold information for cURL requests to read/write to datasets */
typedef struct dataset_write_info {
char *write_body;
char *base64_encoded_values;
curl_off_t write_len;
/* This points to the dynamically allocated buffer for write, if any */
char *alloc_write_buffer;
upload_info uinfo;
} dataset_write_info;

Expand Down Expand Up @@ -601,7 +600,6 @@ typedef struct dataset_transfer_info {
char *selection_body;

/* Fields for type conversion */
void *tconv_buf;
void *bkg_buf;

transfer_type_t transfer_type;
Expand Down
Loading

0 comments on commit 3720b46

Please sign in to comment.