Skip to content

Commit

Permalink
session: clone_arced in cass_session_execute
Browse files Browse the repository at this point in the history
  • Loading branch information
muzarski committed Sep 30, 2024
1 parent feebbc9 commit ce17597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scylla-rust-wrapper/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ pub unsafe extern "C" fn cass_session_execute(
session_raw: *mut CassSession,
statement_raw: *const CassStatement,
) -> *const CassFuture {
let session_opt = ptr_to_ref(session_raw);
let session_opt = clone_arced(session_raw);

// DO NOT refer to `statement_opt` inside the async block, as I've done just to face a segfault.
let statement_opt = ptr_to_ref(statement_raw);
Expand Down

0 comments on commit ce17597

Please sign in to comment.