Skip to content

Commit

Permalink
Fix mismatched use of xnn_allocate_zero_simd_memory and xnn_release_m…
Browse files Browse the repository at this point in the history
…emory

This causes crashes on windows, uncovered in #7830.

PiperOrigin-RevId: 728501674
  • Loading branch information
dsharletg authored and xnnpack-bot committed Feb 19, 2025
1 parent e4113ae commit a98c6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ enum xnn_status xnn_release_workspace(xnn_workspace_t workspace)
assert(workspace->ref_count != 0);
if (--workspace->ref_count == 0) {
xnn_release_simd_memory(workspace->data);
xnn_release_memory(workspace);
xnn_release_simd_memory(workspace);
}
return xnn_status_success;
}
Expand Down

0 comments on commit a98c6ba

Please sign in to comment.