From adbfbebdbaef2f9e986789694284af646b6beac1 Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Thu, 3 Jan 2013 10:14:59 -0400 Subject: [PATCH] input: Use g_free() where appropriate req->rd_data was allocated with g_try_malloc0(), therefore it should be freed with g_free(). --- profiles/input/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/input/device.c b/profiles/input/device.c index 765553444..ca1ce8b12 100644 --- a/profiles/input/device.c +++ b/profiles/input/device.c @@ -285,7 +285,7 @@ static void encrypt_completed(uint8_t status, gpointer user_data) close(req->ctrl_sock); cleanup: - free(req->rd_data); + g_free(req->rd_data); g_free(req); } @@ -376,7 +376,7 @@ static int hidp_add_connection(struct input_device *idev) err = ioctl_connadd(req); cleanup: - free(req->rd_data); + g_free(req->rd_data); g_free(req); return err; -- 2.47.3