Skip to content

Commit 5f8394b

Browse files
slipmetalArtem Kopytin
and
Artem Kopytin
authored
acl_executor.cc fixed bug: scratch_mem invalid memory released condition (#1403)
Co-authored-by: Artem Kopytin <[email protected]>
1 parent b70a26c commit 5f8394b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/device/acl/acl_executor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ int CLGraph::run(struct subgraph *subgraph)
603603
}
604604
}
605605

606-
if(!scratch_mem)
606+
if(scratch_mem)
607607
sys_free(scratch_mem);
608608

609609
int size = functions_map_.size();

0 commit comments

Comments
 (0)