aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jpilot.c2
-rw-r--r--src/rfc2015.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/jpilot.c b/src/jpilot.c
index d3491706..e0161cc1 100644
--- a/src/jpilot.c
+++ b/src/jpilot.c
@@ -934,6 +934,7 @@ static gint jpilot_read_db_files( JPilotFile *pilotFile, GList **records ) {
temp_br = malloc(sizeof(buf_rec));
if (!temp_br) {
+ free(buf);
break;
}
temp_br->rt = PALM_REC;
@@ -990,6 +991,7 @@ static gint jpilot_read_db_files( JPilotFile *pilotFile, GList **records ) {
}
}
}
+ free(temp_br);
}
fclose(pc_in);
diff --git a/src/rfc2015.c b/src/rfc2015.c
index 432580e7..b715c4bc 100644
--- a/src/rfc2015.c
+++ b/src/rfc2015.c
@@ -565,6 +565,8 @@ gboolean rfc2015_msg_is_encrypted(const gchar *file)
ret = rfc2015_is_encrypted(mimeinfo);
procmime_mimeinfo_free_all(mimeinfo);
+ fclose(fp);
+
return ret != 0 ? TRUE : FALSE;
}