diff options
Diffstat (limited to 'src/u8c/end.c')
-rw-r--r-- | src/u8c/end.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/u8c/end.c b/src/u8c/end.c index 924540b..8cd243d 100644 --- a/src/u8c/end.c +++ b/src/u8c/end.c @@ -19,6 +19,7 @@ # include <stdint.h> # include <stdlib.h> # include <u8c/end.h> +# include <u8c/freeu32.h> # if defined(u8c_bethrdsafe) # include <threads.h> # endif @@ -29,7 +30,7 @@ uint_least8_t u8c_end(void) { # if defined(u8c_bethrdsafe) mtx_destroy(&u8c_errlock); # endif - free(u8c_err); + u8c_freeu32(u8c_err); u8c_stat = UINT8_C(0x1); return UINT8_C(0x0); } |