Fix two memory leaks
This commit is contained in:
parent
0c59b56ee8
commit
43928b91e8
1 changed files with 2 additions and 2 deletions
4
FU.xs
4
FU.xs
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue