Wireshark mailing list archives

Re: [Wireshark-commits] rev 44558: /trunk/epan/dissectors/ /trunk/epan/dissectors/: packet-ansi_map.c packet-ansi_tcap.c


From: Guy Harris <guy () alum mit edu>
Date: Fri, 17 Aug 2012 23:23:35 -0700


On Aug 17, 2012, at 7:54 PM, mmann () wireshark org wrote:

http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=44558

User: mmann
Date: 2012/08/17 07:54 PM

Log:
Use capture scoped memory for hash table functionality

Directory: /trunk/epan/dissectors/
 Changes    Path                  Action
 +1 -2      packet-ansi_map.c     Modified
 +1 -2      packet-ansi_tcap.c    Modified

This broke the build, because it left behind, in packet-ansi_tcap.c, a static routine to free up the key and value of 
the elements in a hash table but got rid of the code that resulted in that routine being called.

In addition, it added a memory leak, as, while session-scope-allocated memory was used for the value, the key was 
g_strdup()ed, and needed to be freed, so the routine in question needed to be called - it just needed to be changed not 
to free the value.

I've checked in a fix.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: