dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
586 stars 395 forks source link

fix(dracut-install): memory leak in `--modalias` option #2571

Open aafeijoo-suse opened 7 months ago

aafeijoo-suse commented 7 months ago
> valgrind --leak-check=full --show-leak-kinds=all ./dracut-install --kerneldir /lib/modules/$(uname -r)/ --modalias
...
==22005==
==22005== HEAP SUMMARY:
==22005==     in use at exit: 54,984 bytes in 1,286 blocks
==22005==   total heap usage: 585,546 allocs, 584,260 frees, 165,213,417 bytes allocated
==22005==
...
==22005==
==22005== LEAK SUMMARY:
==22005==    definitely lost: 4,390 bytes in 390 blocks
==22005==    indirectly lost: 0 bytes in 0 blocks
==22005==      possibly lost: 0 bytes in 0 blocks
==22005==    still reachable: 50,594 bytes in 896 blocks
==22005==         suppressed: 0 bytes in 0 blocks
==22005==
==22005== For lists of detected and suppressed errors, rerun with: -s
==22005== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)

Checklist

stale[bot] commented 2 months ago

This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions.