catpoint

simple slides viewer
git clone git://git.2f30.org/catpoint
Log | Files | Refs | README | LICENSE

commit dbf7fba4b6dcb8baed5c439715d089c8c993ef71
parent 1d3e7aa314aa826b56fb4dd5855bd892696f03f7
Author: FRIGN <dev@frign.de>
Date:   Fri, 11 Jul 2014 20:56:41 +0200

Fix memory leak

Diffstat:
Mcatpoint.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/catpoint.c b/catpoint.c @@ -90,6 +90,7 @@ again: /* unmap mem */ for (i = 0; i < argc; ++i) munmap(s[i].buf, s[i].siz); + free(s); printf("\e[?25h"); /* unhide cursor */ tcsetattr(STDIN_FILENO, TCSANOW, &oldterm); /* restore terminal */