Don't mix emem and glib memory and init routines. 07/407/2
authorEvan Huus <eapache@gmail.com>
Wed, 26 Feb 2014 18:00:03 +0000 (13:00 -0500)
committerEvan Huus <eapache@gmail.com>
Wed, 26 Feb 2014 23:54:06 +0000 (23:54 +0000)
commit217293ba4a0353bf5d657e74fe8623dd3c86fe08
treeacea146e62bb789663833d5a56526fbc81ec79b3
parentfc51c557e687351281592ea8d53fa51e0a2a61b6
Don't mix emem and glib memory and init routines.

The seasonal memory is freed before the init routine is called, leading to a
whole bunch of use-after-free errors.

Fixes bug #9802 (and duplicates).

This introduces a few minor leaks but I can't find an easy way to add additional
free calls that doesn't lead to double-free errors.

Change-Id: I1536fcb8e96f5560ad366169e815f62967b3e40d
Reviewed-on: https://code.wireshark.org/review/407
Reviewed-by: Evan Huus <eapache@gmail.com>
epan/dissectors/packet-rlc.c