1
0
forked from aniani/vim

patch 7.4.1746

Problem:    Memory leak in Perl.
Solution:   Decrement the reference count.  Add a test. (Damien)
This commit is contained in:
Bram Moolenaar
2016-04-15 21:16:11 +02:00
parent 5d98c9d932
commit 95509e18f8
3 changed files with 26 additions and 5 deletions

View File

@@ -844,6 +844,7 @@ I32 cur_val(IV iv, SV *sv)
else
rv = newBUFrv(newSV(0), curbuf);
sv_setsv(sv, rv);
SvREFCNT_dec(SvRV(rv));
return 0;
}
#endif /* !PROTO */