[ostree] core: Fix a minor memory leak
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] core: Fix a minor memory leak
- Date: Thu, 17 Nov 2011 03:51:40 +0000 (UTC)
commit 115626c264d3f95d7bca300808c7d4c5f5842d9a
Author: Colin Walters <walters verbum org>
Date: Wed Nov 16 22:50:14 2011 -0500
core: Fix a minor memory leak
src/libostree/ostree-repo.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index f71dfe5..0548eb4 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -304,6 +304,7 @@ resolve_rev (OstreeRepo *self,
{
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);
ret_rev = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]