lib/remote: Fix memory leak

Closes: #1476
Approved by: cgwalters
This commit is contained in:
Matthew Leeds 2018-03-01 15:44:42 -08:00 committed by Atomic Bot
parent d0e4a4f03b
commit 7727fdd9f7

View File

@ -149,6 +149,7 @@ ostree_remote_unref (OstreeRemote *remote)
if (g_atomic_int_dec_and_test (&remote->ref_count))
{
g_clear_pointer (&remote->name, g_free);
g_clear_pointer (&remote->refspec_name, g_free);
g_clear_pointer (&remote->group, g_free);
g_clear_pointer (&remote->keyring, g_free);
g_clear_object (&remote->file);