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

--HG--
extra : rebase_source : f6ca2ca980ae4c99d04baed3a3b7c1ab593ab31a
This commit is contained in:
Byron Campen [:bwc] 2015-04-08 16:18:39 -07:00
Родитель 0897a326eb
Коммит bd03e53251
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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); \
}