Mercurial > hg > nnchat
changeset 75:abbdd101b267
Free some memory.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 16 Nov 2008 05:00:51 +0200 |
parents | 98004129202a |
children | 162951c382b8 |
files | nnchat.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/nnchat.c Fri Nov 14 14:23:21 2008 +0200 +++ b/nnchat.c Sun Nov 16 05:00:51 2008 +0200 @@ -986,6 +986,10 @@ /* Shutdown */ err_exit: + freeBuf(editBuf); + for (histPos = 0; histPos <= SET_MAX_HISTORY; histPos++) + freeBuf(histBuf[histPos]); + if (cursesInit) { if (curVis != ERR) curs_set(curVis); @@ -1013,5 +1017,6 @@ fclose(optLogFile); } + return 0; }