Fix two memory leaks

This commit is contained in:
Yorhel 2025-02-26 08:53:16 +01:00
parent 0c59b56ee8
commit 43928b91e8

4
FU.xs
View file

@ -362,7 +362,7 @@ void nrows(fupg_st *st)
void query(fupg_st *st)
CODE:
ST(0) = newSVpvn_utf8(st->query, strlen(st->query), 1);
ST(0) = newSVpvn_flags(st->query, strlen(st->query), SVs_TEMP|SVf_UTF8);
void exec_time(fupg_st *st)
CODE:
@ -398,7 +398,7 @@ void _new()
void _done(fuxmlwr *wr)
CODE:
ST(0) = fustr_done(&wr->out);
ST(0) = sv_2mortal(fustr_done(&wr->out));
fustr_init(&wr->out, NULL, SIZE_MAX);
void lit_(SV *sv)