r82045 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r82044
|
r82045
|
r82046
>
Date:
00:04, 13 February 2011
Author:
platonides
Status:
ok
Tags:
Comment:
Follow up
r82021
. Free the string after using it. This would not just be a temporal leak, would also repeat old errors with new ones.
Modified paths:
/trunk/php/wmerrors/wmerrors.c
(modified) (
history
)
Diff
[
purge
]
Index: trunk/php/wmerrors/wmerrors.c
—
—
@@ -242,6 +242,7 @@
243
243
WMERRORS_G(recursion_guard) = 2;
244
244
php_stream_write(logfile_stream, WMERRORS_G(log_buffer).c, WMERRORS_G(log_buffer).len TSRMLS_CC);
245
245
WMERRORS_G(recursion_guard) = 1;
246
+ smart_str_free( &WMERRORS_G(log_buffer) ); /* Free and reset the buffer */
246
247
}
247
248
248
249
php_stream_close( logfile_stream );
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r82021
wmerrors: Enable UDP support (already supported by Platonides's existing TCP ...
catrope
18:09, 12 February 2011
Status & tagging log
11:34, 13 February 2011
Catrope
(
talk
|
contribs
)
changed the
status
of r82045
[
removed:
new
added:
ok]