ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 2022] Crash when editing SNMP preferences

Date: Mon, 21 Jan 2008 07:45:17 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2022


Jaap Keuter <jaap.keuter@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jaap.keuter@xxxxxxxxx




--- Comment #2 from Jaap Keuter <jaap.keuter@xxxxxxxxx>  2008-01-21 07:45:14 GMT ---
I've committed a different solution in revision 24152.
First the free queue is filled when items are added to the dropdown lists. Then
when the dialog is OK'ed the items are added again. If the selections are
accepted the dialog exits without taking care of freeing the memory, hence no
crash. If the dialog is subsequently Canceled the memory is freed, twice,
resulting in a crash. 
The solution is to add the items to the free queue once, during construction of
the dialog, and free the memory when it is left, via either OK or Cancel.


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.