mirror of https://github.com/mkerrisk/man-pages
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:
parent
63fe502792
commit
4bf044cbf2
|
@ -320,6 +320,8 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
printf("\(aq%s\(aq points to \(aq%s\(aq\\n", argv[1], linkname);
|
printf("\(aq%s\(aq points to \(aq%s\(aq\\n", argv[1], linkname);
|
||||||
|
|
||||||
|
free(linkname);
|
||||||
|
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
.fi
|
.fi
|
||||||
|
|
Loading…
Reference in New Issue