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

More memory management problems in stun.

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), 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