inliniac/suricata — pull request #928 by regit (2014-04-10 11:45:58+00:00)
Title: packet handling: fix release function

Extended data were freed before the release function was called.
The result was that, in AF_PACKET IPS mode, the release function
was only sending void data because it the content of the extended
data is the content of the packet.

This patch updates the code to have the freeing of extended data
done in the cleaning function for a packet which is called by the
release function. This improves consistency of the code and fixes
the bug.

Redmine ticket:
https://redmine.openinfosecfoundation.org/issues/1176

PR builds:
- PR build: https://buildbot.suricata-ids.org/builders/regit/builds/127
- PR pcaps: https://buildbot.suricata-ids.org/builders/regit-pcap/builds/66