From 7c8ac04d890c5ee75b624acbce651058136c0ae7 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 7 Jul 2015 22:31:50 +0300 Subject: [PATCH] core: gatt-database: Remove unnecessary typecast --- src/gatt-database.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gatt-database.c b/src/gatt-database.c index a1ae7bda5..69a814ddc 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -2303,7 +2303,7 @@ static int profile_add(struct external_profile *profile, const char *uuid) p->remote_uuid = (const void *) g_strdup(uuid); if (!p->remote_uuid) { g_free((void *) p->name); - free((void *) p); + free(p); return -ENOMEM; } -- 2.47.3