readlink.2: Add free() call to example program

Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-10-10 22:22:27 +02:00
parent 63fe502792
commit 4bf044cbf2
1 changed files with 2 additions and 0 deletions

View File

@ -320,6 +320,8 @@ main(int argc, char *argv[])
printf("\(aq%s\(aq points to \(aq%s\(aq\\n", argv[1], linkname);
free(linkname);
exit(EXIT_SUCCESS);
}
.fi