Fix double free corruption

Signed-off-by: Fabio Teixeira