[PATCH] Fix memory leak of gattrib commands queue

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

 



---
 attrib/gattrib.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index 4ed29d9..eace01b 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
@@ -177,6 +177,7 @@ void g_attrib_unref(GAttrib *attrib)
 	while ((c = g_queue_pop_head(attrib->queue)))
 		command_destroy(c);
 
+	g_queue_free(attrib->queue);
 	attrib->queue = NULL;
 
 	for (l = attrib->events; l; l = l->next)
-- 
1.7.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux