stats: Avoid double-frees on a failed mapping
authorGrant Erickson <marathon96@gmail.com>
Thu, 3 Mar 2011 18:44:46 +0000 (10:44 -0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 4 Mar 2011 10:35:31 +0000 (11:35 +0100)
commited896f9789f7c808fb86b4534cbd4eccfa401e82
treef0a1aac87da4bbfb458645b8d0afbaa650f3cdb3
parent81afa6cbc63a929cfbe52798086e61e4796dab66
stats: Avoid double-frees on a failed mapping

Added debugging statements and ensure, following calls to g_free, that
the statistics file name field is set to NULL to ensure that a failed
file mapping and a subsequent call to stats_free doesn't fault when
trying to double-free it.
src/stats.c