Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libkmod: Fix memory leak on error path
If realloc fails, do not override the still valid pointer with NULL. Otherwise freeing the iterator won't free the previously allocated buffer. Signed-off-by: Tobias Stoeckmann <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Link: #82 Signed-off-by: Lucas De Marchi <[email protected]>
- Loading branch information