Skip to content

Commit

Permalink
Fixed as_bytes_init_wrap to use heap_b when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
DomPeliniAerospike committed May 28, 2024
1 parent 141ed64 commit 4252da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/conversions.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ as_status pyobject_to_val(AerospikeClient *self, as_error *err,
if (allocate_buffer) {
uint8_t* heap_b = (uint8_t *)malloc(b_len);
memcpy(heap_b, b, b_len);
as_bytes_init_wrap(bytes, b, b_len, true);
as_bytes_init_wrap(bytes, heap_b, b_len, true);

}
else {
Expand Down

0 comments on commit 4252da8

Please sign in to comment.