Skip to content

Commit

Permalink
Fix mem error
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Oct 18, 2023
1 parent dad3b56 commit 1280a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1160,9 +1160,9 @@ as_status pyobject_to_map_policy(as_error *err, PyObject *py_policy,
// persist_index value must be valid if it is set
return as_error_update(err, AEROSPIKE_ERR_PARAM,
"persist_index is not a boolean");
}else{
persist_index = (bool)PyObject_IsTrue(py_persist_index);
}

persist_index = (bool)PyObject_IsTrue(py_persist_index);
as_map_policy_set_all(policy, map_order, map_write_mode, persist_index);

return err->code;
Expand Down

0 comments on commit 1280a80

Please sign in to comment.