Skip to content

Commit 30ae095

Browse files
author
CI Bot
committed
fix: vxReleaseGraph should not remove from GRAPHS when count > 1
1 parent 2a257b5 commit 30ae095

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

openvx-core/src/c_api.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -766,11 +766,6 @@ pub extern "C" fn vxReleaseGraph(graph: *mut vx_graph) -> vx_status {
766766
if let Ok(mut names) = REFERENCE_NAMES.lock() {
767767
names.remove(&addr);
768768
}
769-
} else {
770-
// Just remove from GRAPHS but keep in unified registries
771-
if let Ok(mut graphs) = GRAPHS.lock() {
772-
graphs.remove(&id);
773-
}
774769
}
775770

776771
*graph = std::ptr::null_mut();

0 commit comments

Comments
 (0)