diff options
author | Duncan Ogilvie <mr.exodia.tpodt@gmail.com> | 2023-05-13 06:19:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 21:19:37 -0700 |
commit | 8b6c7b237c6c36614ddc6942b9568d1c214d25ef (patch) | |
tree | 6dc2a9f04eab015f19a3d42f1ae4b4e80d16c64f /libyasm/bitvect.c | |
parent | e9badc5a77813003baae4e73d4bfd0298069459f (diff) | |
download | yasm-8b6c7b237c6c36614ddc6942b9568d1c214d25ef.tar.gz |
Fix allocator mismatch (#107)
Diffstat (limited to 'libyasm/bitvect.c')
-rw-r--r-- | libyasm/bitvect.c | 4 |
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; |