summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/hfp_hf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/hfp_hf.c b/plugins/hfp_hf.c
index 7a3567e7..c4c90ff7 100644
--- a/plugins/hfp_hf.c
+++ b/plugins/hfp_hf.c
@@ -246,9 +246,8 @@ static int hfp_hf_probe(const char *device, const char *dev_addr,
return 0;
free:
- if (data != NULL) {
+ if (data != NULL)
g_free(data->handsfree_path);
- }
g_free(data);
ofono_modem_remove(modem);