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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user