New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read-only SVs leak memory when copied #414
Comments
From rra@stanford.eduINN 2.3 makes the article body of an incoming article available to an static SV *body = NULL; [...] if (!body) { where hdr is the HV for %hdr in the interpretor's symbol table. This This has exposed a couple of interesting problems. For one, if you do: $lines = $hdr{__BODY__} =~ tr/\n/\n/; Perl will throw an exception saying that you're modifying a read-only $lines = $hdr{__BODY__} =~ tr/\n//; it will work as expected. It sounds like the logic for determining Second, if you do something like: $body = $hdr{__BODY__}; this appears to result in a memory leak in Perl. Is something related to -- |
From @chipdudeThe difference between tr/\n// and tr/\n/\n/ has been fixed. |
From @chipdudeThe memory leak is apparently the result of an unnecessary |
@chipdude - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#1249 (status was 'resolved')
Searchable as RT1249$
The text was updated successfully, but these errors were encountered: