improve DEBUG_LEAKS handling and fix freeing some locs

This commit is contained in:
tg
2013-02-10 19:05:37 +00:00
parent af39f3b7b0
commit 2b06709bf3
2 changed files with 13 additions and 15 deletions

5
edit.c
View File

@ -28,7 +28,7 @@
#ifndef MKSH_NO_CMDLINE_EDITING
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.264 2013/02/10 17:41:03 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.265 2013/02/10 19:05:36 tg Exp $");
/*
* in later versions we might use libtermcap for this, but since external
@ -5451,7 +5451,8 @@ x_init(void)
void
x_done(void)
{
afreeall(AEDIT);
if (x_tab != NULL)
afreeall(AEDIT);
}
#endif
#endif /* !MKSH_NO_CMDLINE_EDITING */