commit 8b44c9d2c43aee4bcbbd3718cc52b6861f5223d7
parent 6fd294c50f230f75c2f764148cd6005cb4a62094
Author: Colin Leroy <colin@colino.net>
Date: Thu, 8 Oct 2015 19:18:53 +0200
Fix resource leak
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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;
}