[ostree] compose: Squash a memory leak



commit e52bc624ff8c21b5f1055760f248f2ec49493386
Author: Colin Walters <walters verbum org>
Date:   Fri Nov 4 11:03:44 2011 -0400

    compose: Squash a memory leak

 ostree/ot-builtin-compose.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/ostree/ot-builtin-compose.c b/ostree/ot-builtin-compose.c
index a98751b..849de45 100644
--- a/ostree/ot-builtin-compose.c
+++ b/ostree/ot-builtin-compose.c
@@ -140,6 +140,9 @@ merge_dir (GFile    *destination,
               if (!g_file_move (src_subfile, dest_subfile, 0, NULL, NULL, NULL, error))
                 goto out;
             }
+          
+          g_clear_object (&dest_subfile);
+          g_clear_object (&src_subfile);
         }
       if (temp_error)
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]