]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: Release memory on error paths
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 5 Nov 2024 16:58:15 +0000 (17:58 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 15 Nov 2024 18:59:45 +0000 (12:59 -0600)
commitda0ee2217d8c95974da9c7ab7f8a49cf93eef03d
tree030b9cb12c69b7d187c6b370aa921fa7fd431518
parent63aec6095b0ea0bed20d5fb6fc72a067a5e73380
depmod: Release memory on error paths

If a list node could not be added, release already allocated data which
was supposed to end up in list.

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