Skip to content

Commit

Permalink
if check before release
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jul 8, 2024
1 parent e21ae79 commit 6b0f9a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/s3_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,9 @@ PyObject *aws_py_s3_client_new(PyObject *self, PyObject *args) {
};

s3_client->native = aws_s3_client_new(allocator, &s3_config);
aws_mem_release(allocator, network_interface_names);
if (network_interface_names) {
aws_mem_release(allocator, network_interface_names);
}

if (s3_client->native == NULL) {
PyErr_SetAwsLastError();
Expand Down

0 comments on commit 6b0f9a6

Please sign in to comment.