Skip to content
Commit 010770bb authored by Thomas Mühlbacher's avatar Thomas Mühlbacher Committed by Zbigniew Jędrzejewski-Szmek
Browse files

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.

(cherry picked from commit fee1863c)
parent da61fe14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment