Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In commit e18eb69, retrieve_manifests() was refactored to support the mixer integration feature, but it introduced a double free of the "filename" pointer when following certain code paths. One code path to reproduce the issue is when a Manifest.MoM is not present in the state directory, and swupd_curl_check_network() fails. A free(filename) was being called immediately before swupd_curl_check_network(), and then again after jumping to the "out" label for the error condition. Resolve the issue by resetting the filename pointer to NULL after freeing the memory to prevent a later double free. I also reset the url pointer to NULL at the second call site for similar reasoning. Signed-off-by: Patrick McCarty <[email protected]>
- Loading branch information