From 229cb3c3ce9cacbaa833c3fc79d90b916a203ecd Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 30 Jul 2012 18:05:41 +0000 Subject: [PATCH] use obj_* to catch double-free errors --- daemon/obj.h | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/obj.h b/daemon/obj.h index 174eba1f1..d7451e707 100644 --- a/daemon/obj.h +++ b/daemon/obj.h @@ -151,6 +151,7 @@ static inline void __obj_put(void *p #endif if (o->free_func) o->free_func(o); + o->magic = 0; g_slice_free1(o->size, o); }