From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> It is better not to dereference freed pointer --- gobex/gobex.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gobex/gobex.c b/gobex/gobex.c index 3848884..16a4aae 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -250,6 +250,7 @@ static gboolean req_timeout(gpointer user_data) g_assert(p != NULL); + p->timeout_id = 0; obex->pending_req = NULL; err = g_error_new(G_OBEX_ERROR, G_OBEX_ERROR_TIMEOUT, @@ -263,8 +264,6 @@ static gboolean req_timeout(gpointer user_data) g_error_free(err); pending_pkt_free(p); - p->timeout_id = 0; - return FALSE; } -- 1.9.1 -- 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