]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: Release memory on error path
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 6 Nov 2024 16:50:27 +0000 (17:50 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 15 Nov 2024 18:59:45 +0000 (12:59 -0600)
commit5a5b4c545c2789665370eadb9e8b160502d08941
tree7c60dea333d1856207dc438030b51cddb0c46eec
parentda0ee2217d8c95974da9c7ab7f8a49cf93eef03d
depmod: Release memory on error path

Check malloc return value and clean up resources if allocation fails.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/228
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/depmod.c