summaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-08-09 16:00:01 +0000
committerFrederic Culot <calcurse@culot.org>2009-08-09 16:00:01 +0000
commit220f49f2066109fc2817d49b0d8e86885138610b (patch)
tree921f37c2aabc1de5b6641a5532b98a2ac7cb0cfc /src/io.c
parent4db3b69b277a5cc39b6f826fc06bb2e1781c8b70 (diff)
downloadcalcurse-220f49f2066109fc2817d49b0d8e86885138610b.zip
Memory leak fixed in ical_read_note.
Diffstat (limited to 'src/io.c')
-rwxr-xr-xsrc/io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index eb14e19..e563d71 100755
--- a/src/io.c
+++ b/src/io.c
@@ -1,4 +1,4 @@
-/* $calcurse: io.c,v 1.77 2009/08/01 17:44:52 culot Exp $ */
+/* $calcurse: io.c,v 1.78 2009/08/09 16:00:02 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -2366,6 +2366,7 @@ ical_read_note (char *first_line, FILE *fdi, unsigned *noskipped,
{
file_close (fdo, __FILE_POS__);
erase_note (&notename, ERASE_FORCE);
+ mem_free (notestr);
return NULL;
}
else