Menu

#477 memory leak output/outbin.c during freeing labels

open
nobody
5
2010-01-11
2010-01-11
gavian
No

The function bin_cleanup declared in output/outbin.c during deleting labels (see step 8) does not delete a 'name' of the label.
The 'labels.c' file function 'redefine_label' push responsibility for freeing this memory on a output driver.

Discussion

  • Cyrill Gorcunov

    Cyrill Gorcunov - 2010-01-11

    Thanks, will take a look.

     
  • Nobody/Anonymous

    The thing is that labels could be either globals (so then we make malloc'ed copy passed) or non-globals (when we don't allocate memory for the label that way). So cleaning up should not be done by simply "free" label. Additional efforts needed.

     
  • Cyrill Gorcunov

    Cyrill Gorcunov - 2010-01-11

    Oh, I was not logged while replying. Anyway -- at moment we;re at late RC stage so this minor-issue should be resolved but most probably after release.

     

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.