now wiht 90% less leaks

This commit is contained in:
Dominik Maier
2020-03-09 21:34:11 +01:00
parent 416020daef
commit 1136e887bd
8 changed files with 64 additions and 91 deletions

View File

@ -32,6 +32,7 @@
#include <string.h>
#include "debug.h"
#include "alloc-inl.h"
typedef enum prealloc_status {
@ -123,7 +124,7 @@ typedef enum prealloc_status {
case PRE_STATUS_MALLOC: { \
\
(el_ptr)->pre_status = PRE_STATUS_UNUSED; \
ck_free((el_ptr)); \
DFL_ck_free((el_ptr)); \
break; \
\
} \