fix double free introduced by titi in r2580 (and by the way, there was no leak in r226763, it has been introduced later on)