+2015-07-10 Benno Schulenberg <bensberg@justemail.net>
+ * src/nano.c (delete_opennode): Plug a small memory leak.
+
2015-07-06 Benno Schulenberg <bensberg@justemail.net>
* src/global.c (add_to_sclist), src/help.c (help_init), src/nano.h,
src/rcfile.c (parse_binding): When defining the toggles, give each
return -1;
}
- openfile->lock_filename = lockfilename;
+ openfile->lock_filename = (char *) lockfilename;
return 1;
}
free_filestruct(fileptr->fileage);
#ifndef NANO_TINY
free(fileptr->current_stat);
+ free(fileptr->lock_filename);
#endif
free(fileptr);
}
undo *current_undo;
/* The current (i.e. next) level of undo. */
undo_type last_action;
- const char *lock_filename;
+ char *lock_filename;
/* The path of the lockfile, if we created one. */
#endif
#ifndef DISABLE_COLOR