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,7 +88,8 @@ stun_attribute_unpack (guint length, const gchar *s) ...@@ -88,7 +88,8 @@ stun_attribute_unpack (guint length, const gchar *s)
if (_stun_attribute_unpack (attr, length, s)) if (_stun_attribute_unpack (attr, length, s))
return attr; return attr;
else
stun_attribute_free (attr);
return NULL; return NULL;
} }
......
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