aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2024-04-29 16:25:07 -0500
committerDenis Kenzior <denkenz@gmail.com>2024-04-29 16:25:39 -0500
commit3365880efc45e70c6fe914ad8c1619c8e935888d (patch)
treeda0a6a2f8c2022365da4c87ed73a20e8059f5b59
parentc5afab6e824c413b457d86eccbb1275487034b62 (diff)
downloadofono-3365880efc45e70c6fe914ad8c1619c8e935888d.tar.gz
qmi: voicecall: Add free on the error path
send_one_dtmf() allocates cb_data, but does not properly clean it up on the (rather unlikely) error path.
-rw-r--r--drivers/qmimodem/voicecall.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/qmimodem/voicecall.c b/drivers/qmimodem/voicecall.c
index bb4c4c2ce..c6383a563 100644
--- a/drivers/qmimodem/voicecall.c
+++ b/drivers/qmimodem/voicecall.c
@@ -682,6 +682,7 @@ static void send_one_dtmf(struct ofono_voicecall *vc, const char dtmf,
error:
CALLBACK_WITH_FAILURE(cb, data);
l_free(param);
+ cb_data_unref(cbd);
}
static void send_one_dtmf_cb(const struct ofono_error *error, void *data)