It should be freed while destroy. --- src/shared/hfp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/hfp.c b/src/shared/hfp.c index 08393d8..9523243 100644 --- a/src/shared/hfp.c +++ b/src/shared/hfp.c @@ -82,6 +82,8 @@ static void destroy_cmd_handler(void *data) if (handler->destroy) handler->destroy(handler->user_data); + free(handler->prefix); + free(handler); } -- 1.8.3.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