Memory leak fixed in ical_read_note.

This commit is contained in:
Frederic Culot 2009-08-09 16:00:01 +00:00
parent 4db3b69b27
commit 220f49f206
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,8 @@
* src/notify.c (notify_thread_app): rewritten * src/notify.c (notify_thread_app): rewritten
* src/sigs.c: remove calcurse lock file when SIGTERM is received * src/sigs.c: remove calcurse lock file when SIGTERM is received
* src/io.c (ical_read_note): memory leak fixed
2009-08-02 Frederic Culot <frederic@culot.org> 2009-08-02 Frederic Culot <frederic@culot.org>

View File

@ -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 * Calcurse - text-based organizer
@ -2366,6 +2366,7 @@ ical_read_note (char *first_line, FILE *fdi, unsigned *noskipped,
{ {
file_close (fdo, __FILE_POS__); file_close (fdo, __FILE_POS__);
erase_note (&notename, ERASE_FORCE); erase_note (&notename, ERASE_FORCE);
mem_free (notestr);
return NULL; return NULL;
} }
else else