+2016-01-15 Benno Schulenberg <bensberg@justemail.net>
+ * src/winio.c (set_modified): Plug another memory leak.
+
2016-01-15 Mike Frysinger <vapier@gentoo.org>
* src/files.c (open_file): Free the full filename in all cases.
/* TRANSLATORS: Try to keep this at most 76 characters. */
statusbar(_("Warning: Modifying a file which is not locked, check directory permission?"));
} else {
- write_lockfile(openfile->lock_filename,
- get_full_path(openfile->filename), TRUE);
+ char *fullname = get_full_path(openfile->filename);
+ write_lockfile(openfile->lock_filename, fullname, TRUE);
+ free(fullname);
}
}
#endif