Commit 0911e690 authored by Pekka Pessi's avatar Pekka Pessi

More memory management problems in stun.

darcs-hash:20060418235249-65a35-cc644234b895f79a905fdf81c7e01ed2bdf934ca.gz
parent 11c2ef82
......@@ -315,7 +315,7 @@ void stun_init_buffer(stun_buffer_t *p) {
int stun_free_buffer(stun_buffer_t *p) {
if (p->data)
free(p->data);
free(p->data), p->data = NULL;
p->size = 0;
return 0;
}
......
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