From: Colin Leroy Date: Thu, 8 Oct 2015 17:18:53 +0000 (+0200) Subject: Fix resource leak X-Git-Tag: 3.13.0~12 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=8b44c9d2c43aee4bcbbd3718cc52b6861f5223d7 Fix resource leak --- diff --git a/src/jpilot.c b/src/jpilot.c index fde63ce37..43f58f45e 100644 --- a/src/jpilot.c +++ b/src/jpilot.c @@ -872,6 +872,7 @@ static gint jpilot_read_db_files( JPilotFile *pilotFile, GList **records ) { } } if (fseek( in, next_offset, SEEK_SET ) < 0) { + free_mem_rec_header( &mem_rh ); fclose(in); return MGU_ERROR_READ; }