Wireshark-commits: [Wireshark-commits] master 0137f92: addr_resolv: correctly scope returned memory

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 29 Jan 2015 15:45:25 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=0137f9226a4ff1f75c5d8b83bf3a52243a44e088
Submitter: Evan Huus (eapache@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

0137f92 by Evan Huus (eapache@xxxxxxxxx):

    addr_resolv: correctly scope returned memory
    
    *_port_to_display functions take an allocator scope, so the memory they return
    must be allocated from that scope, which means we must strdup the result of
    serv_name_lookup.
    
    Bug: 10901
    Change-Id: I337c8b6f9dfece966964c09023679b3e24648e48
    Reviewed-on: https://code.wireshark.org/review/6842
    Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
    Reviewed-by: Evan Huus <eapache@xxxxxxxxx>
    

Actions performed:

    from  25f1df4   "%l[doux]" doesn't mean "64-bit integer".
    adds  0137f92   addr_resolv: correctly scope returned memory


Summary of changes:
 epan/addr_resolv.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)