Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit e7b716d

Browse files
CArray_DECREF new implementation for the garbage collector update
1 parent c0da8e3 commit e7b716d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

kernel/alloc.c

+11
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ CArray_XDECREF(CArray *target)
4646
target->refcount--;
4747
}
4848

49+
/**
50+
* @return
51+
*/
52+
void
53+
CArray_DECREF(CArray *target)
54+
{
55+
target->refcount--;
56+
CArray_Free(target);
57+
}
58+
59+
4960
/**
5061
* Alocates CArray Data Buffer based on numElements and elsize from
5162
* CArray descriptor.

0 commit comments

Comments
 (0)