common: Fix double free of GError

Closes: #2919
Approved by: alexlarsson
This commit is contained in:
Matthew Leeds
2019-05-24 11:27:43 -07:00
committed by Atomic Bot
parent b0ad7003bc
commit 3164c68e31

View File

@@ -6783,7 +6783,7 @@ flatpak_repo_resolve_rev (OstreeRepo *repo,
if (g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
flatpak_fail_error (error, FLATPAK_ERROR_REF_NOT_FOUND, "%s", local_error->message);
else
g_propagate_error (error, local_error);
g_propagate_error (error, g_steal_pointer (&local_error));
return FALSE;
}