[Pkg-telepathy-commits] [libnice] 175/265: agent: Free every parameter
Simon McVittie
smcv at debian.org
Wed May 14 12:05:05 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian
in repository libnice.
commit 1a327d3319e0b8036248a78ce50b82619655c0ca
Author: Olivier Crête <olivier.crete at collabora.com>
Date: Fri Mar 14 23:53:06 2014 -0400
agent: Free every parameter
Fixes off-by-one error
---
agent/agent.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/agent/agent.c b/agent/agent.c
index fea3921..c40b7fe 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -176,10 +176,12 @@ free_queued_signal (QueuedSignal *sig)
{
guint i;
+ g_value_unset (&sig->params[0]);
+
for (i = 0; i < sig->query.n_params; i++) {
- g_free (g_value_get_pointer (&sig->params[i]));
- g_value_unset (&sig->params[i]);
if (G_VALUE_HOLDS(&sig->params[i + 1], NICE_TYPE_AGENT_STREAM_IDS))
+ g_free (g_value_get_pointer (&sig->params[i + 1]));
+ g_value_unset (&sig->params[i + 1]);
}
g_slice_free1 (sizeof(GValue) * (sig->query.n_params + 1), sig->params);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git
More information about the Pkg-telepathy-commits
mailing list