diff options
author | Vivek Dasmohapatra <vivek@collabora.co.uk> | 2010-05-20 15:43:15 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-05-26 16:31:10 +0100 |
commit | cd48b089e962c9842c97545ad3cb91336a4be675 (patch) | |
tree | 0fadca6acb9b8d8a319e0911c049ff935407aee2 | |
parent | c773108d1729d00ed832d93c2246e14cb81ec12a (diff) | |
download | telepathy-mission-control-cd48b089e962c9842c97545ad3cb91336a4be675.tar.gz |
Coverity 21106 RESOURCE_LEAK in dispatch_operation_claim
(cherry picked from commit 07599a7ab74d654d50bc4dd8493f6f4cef5459df)
-rw-r--r-- | src/mcd-dispatch-operation.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mcd-dispatch-operation.c b/src/mcd-dispatch-operation.c index 60de4ab5..f07e13ef 100644 --- a/src/mcd-dispatch-operation.c +++ b/src/mcd-dispatch-operation.c @@ -778,9 +778,13 @@ dispatch_operation_claim (TpSvcChannelDispatchOperation *cdo, if (self->priv->result != NULL) { - DEBUG ("Giving error to %s: %s", dbus_g_method_get_sender (context), - self->priv->result->message); - dbus_g_method_return_error (context, self->priv->result); + gchar *sender = dbus_g_method_get_sender (context); + + DEBUG ("Giving error to %s: %s", sender, priv->result->message); + dbus_g_method_return_error (context, priv->result); + + g_free (sender); + return; } |