From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> It does make sense free() dev after it is used. g_free() is not needed here since it will be already executed in bt_pan_notify_conn_state(). --- android/pan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/android/pan.c b/android/pan.c index bfba128..4e04da0 100644 --- a/android/pan.c +++ b/android/pan.c @@ -463,7 +463,6 @@ static void nap_confirm_cb(GIOChannel *chan, gpointer data) return; failed: - g_free(dev); bt_pan_notify_conn_state(dev, HAL_PAN_STATE_DISCONNECTED); } -- 1.8.3.2 -- 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