URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=0f1f1d0ab827243d3e639ec1d00693e0d2edb883
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
0f1f1d0 by Guy Harris (guy@xxxxxxxxxxxx):
Creat protocol tvbuff before allocating and freeing memory.
That way, if the attempt to create the protocol tvbuff throws an
exception, we won't leak the protocol representation string, as we won't
even try to allocate it.
Bug: 14719
Change-Id: Id2855bc97e71aa0682737d1a04486a2a01f5f1e6
Reviewed-on: https://code.wireshark.org/review/27730
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from f01ff0c Test: Consolidate our environments.
adds 0f1f1d0 Creat protocol tvbuff before allocating and freeing memory.
Summary of changes:
epan/proto.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)