From 6d46ef5c157b87f6a44e009b4fc7f60078ecce59 Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 27 Nov 2013 07:06:18 +0000 Subject: fixed fp and memory leaks. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3300 ee746299-78ed-0310-b773-934348b2243d --- src/jpilot.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/jpilot.c') diff --git a/src/jpilot.c b/src/jpilot.c index e0161cc1..ca8e391b 100644 --- a/src/jpilot.c +++ b/src/jpilot.c @@ -849,6 +849,7 @@ static gint jpilot_read_db_files( JPilotFile *pilotFile, GList **records ) { return MGU_ERROR_READ; } if (feof(in)) { + fclose(in); return MGU_EOF; } } @@ -866,6 +867,8 @@ static gint jpilot_read_db_files( JPilotFile *pilotFile, GList **records ) { break; } if (feof(in)) { + free_mem_rec_header(&mem_rh); + fclose(in); return MGU_EOF; } } -- cgit v1.2.3