ext/oj/compat.c in oj-3.14.1 vs ext/oj/compat.c in oj-3.14.2

- old
+ new

@@ -1,10 +1,11 @@ // Copyright (c) 2012 Peter Ohler. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for license details. #include <stdio.h> +#include "mem.h" #include "encode.h" #include "err.h" #include "intern.h" #include "oj.h" #include "parse.h" @@ -83,10 +84,10 @@ if (!rb_respond_to(clas, creatable) || Qtrue == rb_funcall(clas, creatable, 0)) { parent->val = rb_funcall(clas, oj_json_create_id, 1, parent->val); } } if (0 != parent->classname) { - xfree((char *)parent->classname); + OJ_R_FREE((char *)parent->classname); parent->classname = 0; } } TRACE_PARSE_HASH_END(pi->options.trace, pi); }