Menu

#21 str_wordInString.hla memory bug

open-fixed
nobody
None
1
2008-04-18
2008-02-21
sevag.K
No

1. the documentation calls it str.wordInStr

actual iterator name is str.wordInString

2. documentation states words are allocated on HEAP and caller is responsible to free string

iterator actually allocates local copies of each word as well as the local copy of the original string. the string is freed automatically when control is returned to iterator.

one or the other has to change.

Discussion

  • Randall Hyde

    Randall Hyde - 2008-04-18

    Logged In: YES
    user_id=1569530
    Originator: NO

    Made the documentation match the code. Changed the name to str_wordInStr.

     
  • Randall Hyde

    Randall Hyde - 2008-04-18
    • priority: 5 --> 1
    • status: open --> open-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.