Memory leax fix (thanks Christos Stamatopoulos).