[dconf: 1/2] Free OustandingWatch's path



commit f873033a740418a14b1e0c03525e758155d4407e
Author: Guido Günther <agx sigxcpu org>
Date:   Mon Sep 10 15:07:15 2018 +0200

    Free OustandingWatch's path
    
    Otherwise we leak it as can be seen in
    
        https://source.puri.sm/guido.gunther/phosh/-/jobs/1868
    
    This unbreaks phosh's CI build under valgrind.

 engine/dconf-engine.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/engine/dconf-engine.c b/engine/dconf-engine.c
index dde8c18..06d7dd6 100644
--- a/engine/dconf-engine.c
+++ b/engine/dconf-engine.c
@@ -974,6 +974,7 @@ dconf_engine_watch_established (DConfEngine  *engine,
                                      ow->path);
 
   dconf_engine_unlock_subscription_counts (engine);
+  g_clear_pointer (&ow->path, g_free);
   dconf_engine_call_handle_free (handle);
 }
 


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