ext/oj/reader.h in oj-3.14.1 vs ext/oj/reader.h in oj-3.14.2

- old
+ new

@@ -2,10 +2,12 @@ // Licensed under the MIT License. See LICENSE file in the project root for license details. #ifndef OJ_READER_H #define OJ_READER_H +#include "mem.h" + typedef struct _reader { char base[0x00001000]; char *head; char *end; char *tail; @@ -112,10 +114,10 @@ return 0; } static inline void reader_cleanup(Reader reader) { if (reader->free_head && 0 != reader->head) { - xfree((char *)reader->head); + OJ_R_FREE((char *)reader->head); reader->head = 0; reader->free_head = 0; } }