From 7a36cbfd70c30c90d3134a384061739c3381d4cb Mon Sep 17 00:00:00 2001 From: Pekka Pessi Date: Wed, 6 Oct 2010 17:52:19 +0300 Subject: voicecall: check g_try_new0 return value --- src/voicecall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/voicecall.c b/src/voicecall.c index 8be74872..7b5fe3bf 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -2281,6 +2281,9 @@ int __ofono_voicecall_dial(struct ofono_voicecall *vc, */ req = g_try_new0(struct dial_request, 1); + if (req == NULL) + return -ENOMEM; + req->message = g_strdup(message); req->icon_id = icon_id; req->interaction = interaction; -- cgit v1.2.3