core: Fix a minor memory leak

This commit is contained in:
Colin Walters 2011-11-16 22:50:14 -05:00
parent 53191e4c8e
commit 115626c264
1 changed files with 1 additions and 0 deletions

View File

@ -304,6 +304,7 @@ resolve_rev (OstreeRepo *self,
{ {
if (allow_noent && g_error_matches (temp_error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) if (allow_noent && g_error_matches (temp_error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
{ {
g_clear_error (&temp_error);
g_free (ret_rev); g_free (ret_rev);
ret_rev = NULL; ret_rev = NULL;
} }