Commit d35d7383 authored by Dafydd Harries's avatar Dafydd Harries

fix memory leak when unpacking attribute fails

darcs-hash:20070130102738-c9803-eefe3866cc7da4bbdd0592b2e5e3776f0a655b5c.gz
parent 3826dec8
......@@ -88,8 +88,9 @@ stun_attribute_unpack (guint length, const gchar *s)
if (_stun_attribute_unpack (attr, length, s))
return attr;
else
return NULL;
stun_attribute_free (attr);
return NULL;
}
guint
......
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