rare case memory leak

Signed-off-by: Mattias Andrée <maandree@operamail.com>
missed to close file

Signed-off-by: Mattias Andrée <maandree@operamail.com>
missed to close file

Signed-off-by: Mattias Andrée <maandree@operamail.com>
derp

Signed-off-by: Mattias Andrée <maandree@operamail.com>
mem fault

Signed-off-by: Mattias Andrée <maandree@operamail.com>