#217 fixed memory leak

closed-fixed
bugfix (78)
5
2009-10-28
2009-10-17
No

fixed memory leak in /src/icehelp.cc
https://bugzilla.novell.com/show_bug.cgi?id=546806

Discussion

  • Pavol Rusnak

    Pavol Rusnak - 2009-10-19

    source code file icewm-1.2.38pre1/src/icehelp.cc
    function parse

    I notice the following code

    buf = (char *)realloc(buf, ++len);

    but I fail to notice a matching call to free in the following code

    if (parent) {
    close = type;
    //puts("</PARSE>");
    return f;
    }

    Suggest new code

    if (parent) {
    close = type;
    //puts("</PARSE>");
    free( buf);
    return f;
    }

     
  • Marko Macek

    Marko Macek - 2009-10-28
    • assigned_to: nobody --> captnmark
     
  • Marko Macek

    Marko Macek - 2009-10-28

    fixed some leaks

     
  • Marko Macek

    Marko Macek - 2009-10-28
    • status: open --> open-fixed
     
  • Marko Macek

    Marko Macek - 2009-10-28
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.