Mercurial > hg > nnchat
diff nnchat.c @ 75:abbdd101b267
Free some memory.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 16 Nov 2008 05:00:51 +0200 |
parents | 98004129202a |
children | e8c9d7d13866 |
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; }