diff options
Diffstat (limited to 'src/u8c/seterr.c')
-rw-r--r-- | src/u8c/seterr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/u8c/seterr.c b/src/u8c/seterr.c index c9fec04..5796683 100644 --- a/src/u8c/seterr.c +++ b/src/u8c/seterr.c @@ -19,18 +19,19 @@ # include <stdint.h> # include <stdlib.h> # include <u8c/dbgprint.h> +# include <u8c/freeu32.h> # include <u8c/seterr.h> # include <u8c/u32cp.h> # if defined(u8c_bethrdsafe) # include <threads.h> # endif -uint_least8_t u8c_seterr(uint_least32_t * const _msg) { +uint_least8_t u8c_seterr(uint_least32_t const * const _msg) { assert(_msg != NULL); u8c_dbgprint(_msg); # if defined(u8c_bethrdsafe) mtx_lock(&u8c_errlock); # endif - free(u8c_err); + u8c_freeu32(u8c_err); u8c_u32cp(NULL,&u8c_err,_msg); # if defined(u8c_bethrdsafe) mtx_unlock(&u8c_errlock); |