Menu

#32 patch for possible memory leak

closed
None
5
2007-07-06
2007-06-29
No

Theres a little memory leak, patch attached, the problem is...

1625 char * m = morph(word);

At conditional (1): "m == 0" taking false path

1626 if(!m) return 0;

Event leaked_storage: Returned without freeing storage "m"
Event pass_arg: Variable "m" not freed or pointed-to in function "line_tok(const char *, char ***)" [model]
Also see events: [alloc_fn][var_assign][pass_arg]
At conditional (2): "out == 0" taking true path

1627 if (!out) return line_tok(m, out);

Discussion

  • caolan mcnamara

    caolan mcnamara - 2007-06-29

    patch to fix

     
  • Németh László

    Logged In: YES
    user_id=726595
    Originator: NO

    Thanks for the patch. Laci

     
  • Németh László

    • assigned_to: nobody --> nemethl
    • status: open --> closed