Menu

#1 Memory Leaks

v1.0_(example)
open
nobody
5
2003-12-11
2003-12-11
No

I don't know if anyone still looks at this code or not. I
used it about a year and a half ago, been using it, and
just lately ran across two memory leaks in the code.
One leak is in freeing the attribute, the attribute
structure isn't freed, just set to NULL. The other is in
parse tag, the code will malloc memory for the name of
the tag twice, once on the start tag and once on the
end tag. I have code that fixes both if you'd like it.

Discussion

  • Jonas Widén

    Jonas Widén - 2004-07-03

    Logged In: YES
    user_id=352221

    Sorry for the late response and thanks for the first bug
    report! :)
    If you could attach a patch file with the correction so a
    new release can be made!

     
  • Tom Evans

    Tom Evans - 2010-04-07

    I think these leakes were patched some 500 days before you posted the report.

    The "tar.gz" download file is the ORIGINAL source with all the bugs. If you want the bugfixed code
    you'll need to copy the updated files from the CVS repository.

     

Log in to post a comment.

MongoDB Logo MongoDB