Wireshark-commits: [Wireshark-commits] master 5889d10: Free if the pointer to the item being freed

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 7 Jun 2016 21:48:00 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=5889d10d10d666aba81d3cf989bb5b9084be97d1
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

5889d10 by Guy Harris (guy@xxxxxxxxxxxx):

    Free if the pointer to the item being freed is *non*-null, not if it's null.
    
    Bug: 12497
    Change-Id: I282411e36783e735b02b66a024627287767813e2
    Reviewed-on: https://code.wireshark.org/review/15773
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  1755d74   ESP: keep IP protocol, encryption and authentication algorithms when copying an UAT entry
    adds  5889d10   Free if the pointer to the item being freed is *non*-null, not if it's null.


Summary of changes:
 epan/diam_dict.l |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)