In the case of error, Unref the req->msg which is allocated inside the pincode_request_new() --- src/agent.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/agent.c b/src/agent.c index 9b942e8..363630e 100644 --- a/src/agent.c +++ b/src/agent.c @@ -456,7 +456,7 @@ int agent_request_pincode(struct agent *agent, struct btd_device *device, return 0; failed: - g_free(req); + agent_request_free(req, FALSE); return err; } -- 1.7.4.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