Menu

#50 Fix a possible memory leak in e2initrd_helper.c:get_file().

open
nobody
None
5
2012-11-28
2010-04-23
No

In some cases, buf is allocated, but the pointer isn't copied into the ret_file structure. This patch frees buf unless it's actually used.

Discussion

  • Adam Buchbinder

    Adam Buchbinder - 2010-04-23

    I forgot to note--this bug was found with cppcheck.

     
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.