Bug 1152137 - Part 2: Remove attributes that could not be initted properly instead of just freeing them. r=ekr

This commit is contained in:
Byron Campen [:bwc] 2015-04-08 16:18:39 -07:00
parent 81f55ba90c
commit 9fc4be676c

View File

@ -186,7 +186,9 @@ nr_stun_message_has_attribute(nr_stun_message *msg, UINT2 type, nr_stun_message_
{ __code } \
_status=0; \
abort: \
if (_status) RFREE(attr); \
if (_status){ \
nr_stun_message_attribute_destroy(msg, &attr); \
} \
return(_status); \
}