summaryrefslogtreecommitdiff
path: root/libyasm/bitvect.c
diff options
context:
space:
mode:
Diffstat (limited to 'libyasm/bitvect.c')
-rw-r--r--libyasm/bitvect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libyasm/bitvect.c b/libyasm/bitvect.c
index dfb08252..b6570ea3 100644
--- a/libyasm/bitvect.c
+++ b/libyasm/bitvect.c
@@ -457,7 +457,7 @@ void BitVector_Destroy_List(listptr list, N_int count) /* free list */
{
BitVector_Destroy(*slot++);
}
- free((voidptr) list);
+ yasm_xfree((voidptr) list);
}
}
@@ -496,7 +496,7 @@ listptr BitVector_Create_List(N_int bits, boolean clear, N_int count)
if (count > 0)
{
- list = (listptr) malloc(sizeof(wordptr) * count);
+ list = (listptr) yasm_xmalloc(sizeof(wordptr) * count);
if (list != NULL)
{
slot = list;