fix cloned string cleanup

This commit is contained in:
2026-02-17 02:03:40 -05:00
parent a6bf357228
commit 225a1533cc
9 changed files with 113 additions and 59 deletions

View File

@@ -54,6 +54,10 @@ Cancellation_Reason :: struct {
}
transact_write_action_destroy :: proc(action: ^Transact_Write_Action) {
delete(action.table_name)
if ce, has := action.condition_expr.?; has {
delete(ce)
}
if item, has := action.item.?; has {
item_copy := item
item_destroy(&item_copy)
@@ -618,8 +622,12 @@ Transact_Get_Result :: struct {
}
transact_get_action_destroy :: proc(action: ^Transact_Get_Action) {
delete(action.table_name)
item_destroy(&action.key)
if proj, has := action.projection.?; has {
for path in proj {
delete(path)
}
delete(proj)
}
}