summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/atmodem/cbs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/atmodem/cbs.c b/drivers/atmodem/cbs.c
index 0a5e99a5..eb46d30d 100644
--- a/drivers/atmodem/cbs.c
+++ b/drivers/atmodem/cbs.c
@@ -236,6 +236,11 @@ static int at_cbs_probe(struct ofono_cbs *cbs, unsigned int vendor,
static void at_cbs_remove(struct ofono_cbs *cbs)
{
+ struct cbs_data *data = ofono_cbs_get_data(cbs);
+
+ ofono_cbs_set_data(cbs, NULL);
+
+ g_free(data);
}
static struct ofono_cbs_driver driver = {