[Telepathy-commits] [telepathy-gabble/master] presence-cache: don't leak computed_hash
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Sep 19 09:07:41 PDT 2008
---
src/presence-cache.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/presence-cache.c b/src/presence-cache.c
index b21f94e..5077abc 100644
--- a/src/presence-cache.c
+++ b/src/presence-cache.c
@@ -839,7 +839,7 @@ _caps_disco_cb (GabbleDisco *disco,
* stanza. */
if (!tp_strdiff (waiter_self->hash, "sha-1"))
{
- const gchar *computed_hash;
+ gchar *computed_hash;
trust_inc = CAPABILITY_BUNDLE_ENOUGH_TRUST;
computed_hash = caps_hash_compute_from_lm_node (query_result);
@@ -856,6 +856,8 @@ _caps_disco_cb (GabbleDisco *disco,
trust = 0;
bad_hash = TRUE;
}
+
+ g_free (computed_hash);
}
else
{
--
1.5.6.5
More information about the Telepathy-commits
mailing list