Skip to content

Commit 878c7d3

Browse files
authored
Merge pull request #206 from DenverM80/plug_test_mem_leak
Fix mem leak introduced in previous commit; tests still pass
2 parents 1c10a5c + 5c93f44 commit 878c7d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/bucket_tests.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ BOOST_AUTO_TEST_CASE( init_put_object_offset_unsigned_long_long ) {
3131
printf(" request->query_params[\"offset\"]:%s\n", value);
3232
BOOST_CHECK(value != NULL);
3333
BOOST_CHECK(g_strcmp0(value, "18446744073709551615") == 0);
34+
35+
ds3_request_free(request);
3436
}
3537

3638
BOOST_AUTO_TEST_CASE( bulk_put ) {
@@ -79,6 +81,8 @@ BOOST_AUTO_TEST_CASE( empty_folder ) {
7981
ds3_request* request = ds3_init_put_bulk_job_spectra_s3_request(bucket_name, object_list);
8082
ds3_master_object_list_response* bulk_response;
8183
error = ds3_put_bulk_job_spectra_s3_request(client, request, &bulk_response);
84+
ds3_bulk_object_list_response_free(object_list);
85+
ds3_request_free(request);
8286
handle_error(error);
8387

8488
request = ds3_init_put_object_request(bucket_name, objects[0], 0);

0 commit comments

Comments
 (0)