From: SourceForge.net <no...@so...> - 2004-02-23 10:58:49
|
Bugs item #902562, was opened at 2004-02-23 10:20 Message generated for change (Comment added) made by dkf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=902562&group_id=10894 Category: 42. Regexp >Group: develop: 8.5a0 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Donal K. Fellows (dkf) Summary: Un-free'd DString in regc_locale.c Initial Comment: The function "cclass" in regc_locale.c has a Tcl_DString at line ~725 which is not properly Tcl_DStringFree'd. A memory leak can be triggered by: while {1} { set str {a_very_very_long_string_which_is_greater_than_TCL_D STRING_STATIC_SIZE_characters_long_blahblahblahblahb lahblahblahblahblahblahblahblahblahblahblahblahblahblahbl ahblahblahblahblahblahblahblahblahblah} catch { regexp "a\[\[:$str\:\]\]b" axb } } Cheers, AJD. ---------------------------------------------------------------------- >Comment By: Donal K. Fellows (dkf) Date: 2004-02-23 10:48 Message: Logged In: YES user_id=79902 Someone had put Tcl_DStringInit() instead of Tcl_DStringFree() Fixed in HEAD for 8.5, and I can't be bothered to backport to 8.4 since this is really unlikely to come up a lot in production code! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=902562&group_id=10894 |