From 4d222384ccef052ed3f4e679270f7b75488c3c6b Mon Sep 17 00:00:00 2001 From: atinm Date: Fri, 14 Oct 2011 01:12:38 -0400 Subject: [PATCH] garbage college memory Change-Id: I9b1291b563ac1d366120370d03e527d59c6cb4df --- bluedroid/bluetooth.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bluedroid/bluetooth.c b/bluedroid/bluetooth.c index 4f9cdb0..ecbc90c 100644 --- a/bluedroid/bluetooth.c +++ b/bluedroid/bluetooth.c @@ -253,6 +253,10 @@ int bt_disable() { if (set_bluetooth_power(0) < 0) { goto out; } + + if (rfkill_state_path) + free(rfkill_state_path); + ret = 0; out: