File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1952,8 +1952,10 @@ extern "C" LEAN_EXPORT obj_res lean_decode_lossy_utf8(b_obj_arg a) {
19521952 return lean_mk_string_from_bytes (reinterpret_cast <char *>(lean_sarray_cptr (a)), lean_sarray_size (a));
19531953}
19541954
1955- extern " C" LEAN_EXPORT obj_res lean_string_from_utf8_unchecked (b_obj_arg a) {
1956- return lean_mk_string_from_bytes_unchecked (reinterpret_cast <char *>(lean_sarray_cptr (a)), lean_sarray_size (a));
1955+ extern " C" LEAN_EXPORT obj_res lean_string_from_utf8_unchecked (obj_arg a) {
1956+ obj_res ret = lean_mk_string_from_bytes_unchecked (reinterpret_cast <char *>(lean_sarray_cptr (a)), lean_sarray_size (a));
1957+ lean_dec (a);
1958+ return ret;
19571959}
19581960
19591961extern " C" LEAN_EXPORT uint8 lean_string_validate_utf8 (b_obj_arg a) {
You can’t perform that action at this time.
0 commit comments