]> git.ipfire.org Git - thirdparty/systemd.git/commit
man: Don't leak memory in path-documents example
authorThomas Mühlbacher <tmuehlbacher@posteo.net>
Mon, 30 Aug 2021 14:16:30 +0000 (16:16 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 31 Aug 2021 04:44:49 +0000 (13:44 +0900)
commitfee1863c83d04aa06d50a90ff42f5d4f4f2b9178
tree917d55f1581591f0d559e7a956934f355babc913
parent827d1ba7304600b0272583818f479bdbd5e45493
man: Don't leak memory in path-documents example

The `sd_path_lookup(3)` man page states that the returned string shall be
`free(3)`'d but then doesn't do so in the example code.

Also add basic error handling as well.
man/path-documents.c