intel/aubinator: Free section data last
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Dec 2017 16:39:10 +0000 (08:39 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Dec 2017 18:39:04 +0000 (10:39 -0800)
commita92d52c3c1676e25d742db387426315aee78e9f8
treed4363be99c15bd22d76ce496eb9e722dad20ce91
parent5c5f2eaa08fb6c1b1241c424dd4b33d326a15b7d
intel/aubinator: Free section data last

We were walking the sections, printing the batches, and then freeing
them in one pass.  If the batch happens to reference any earlier
sections (which it almost certainly will since it's at the end), we will
access freed memory.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/tools/aubinator_error_decode.c