summaryrefslogtreecommitdiff
path: root/xs_json.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-07 13:48:53 +0200
committerdefault <nobody@localhost>2022-10-07 13:48:53 +0200
commita4cf695e60e0d4f79638cb1f37f78b524411efcf (patch)
tree3db5747f1f75e67bf5785c18b6753bfa80d6a9fa /xs_json.h
parent17842c2a797a3091e937025e06e17a14e2a1a4e6 (diff)
Backport from xs.
Diffstat (limited to 'xs_json.h')
-rw-r--r--xs_json.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs_json.h b/xs_json.h
index 4915a62..871dfcf 100644
--- a/xs_json.h
+++ b/xs_json.h
@@ -508,7 +508,7 @@ d_char *xs_json_loads(const char *json)
d_char *v = NULL;
js_type t;
- _xs_json_loads_lexer(&json, &t);
+ free(_xs_json_loads_lexer(&json, &t));
if (t == JS_OBRACK)
v = _xs_json_loads_array(&json, &t);