fix cloned string cleanup
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user