Plugging a small memory leak.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5287 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
6095ff3d39
commit
9fcde23009
|
@ -1,3 +1,6 @@
|
||||||
|
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>
|
2015-07-06 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/global.c (add_to_sclist), src/help.c (help_init), src/nano.h,
|
* 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
|
src/rcfile.c (parse_binding): When defining the toggles, give each
|
||||||
|
|
|
@ -224,7 +224,7 @@ int write_lockfile(const char *lockfilename, const char *origfilename, bool modi
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
openfile->lock_filename = lockfilename;
|
openfile->lock_filename = (char *) lockfilename;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -569,6 +569,7 @@ void delete_opennode(openfilestruct *fileptr)
|
||||||
free_filestruct(fileptr->fileage);
|
free_filestruct(fileptr->fileage);
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
free(fileptr->current_stat);
|
free(fileptr->current_stat);
|
||||||
|
free(fileptr->lock_filename);
|
||||||
#endif
|
#endif
|
||||||
free(fileptr);
|
free(fileptr);
|
||||||
}
|
}
|
||||||
|
|
|
@ -397,7 +397,7 @@ typedef struct openfilestruct {
|
||||||
undo *current_undo;
|
undo *current_undo;
|
||||||
/* The current (i.e. next) level of undo. */
|
/* The current (i.e. next) level of undo. */
|
||||||
undo_type last_action;
|
undo_type last_action;
|
||||||
const char *lock_filename;
|
char *lock_filename;
|
||||||
/* The path of the lockfile, if we created one. */
|
/* The path of the lockfile, if we created one. */
|
||||||
#endif
|
#endif
|
||||||
#ifndef DISABLE_COLOR
|
#ifndef DISABLE_COLOR
|
||||||
|
|
Loading…
Reference in New Issue