Commit 59e7e39c authored by Dafydd Harries's avatar Dafydd Harries
Browse files

fix memory leaks in agent/test-stun

darcs-hash:20070201195710-c9803-a32758e0a7d3d04edb8e26cb9a7270b4d94b5d9f.gz
parent e4301aa0
......@@ -62,10 +62,13 @@ test_stun_no_password (
bres = stun_message_new (STUN_MESSAGE_BINDING_ERROR_RESPONSE,
"0123456789abcdef", 0);
packed_len = stun_message_pack (bres, &packed);
stun_message_free (bres);
}
g_assert (len == packed_len);
g_assert (0 == memcmp (buf, packed, len));
g_free (packed);
}
static void
......@@ -115,10 +118,12 @@ test_stun_invalid_password (
bres = stun_message_new (STUN_MESSAGE_BINDING_ERROR_RESPONSE,
"0123456789abcdef", 0);
packed_len = stun_message_pack (bres, &packed);
stun_message_free (bres);
}
g_assert (len == packed_len);
g_assert (0 == memcmp (buf, packed, len));
g_free (packed);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment