Skip to content
Commit 61e8b2a1 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)
(cherry picked from commit 010770bb)
parent 8d9fa0a3
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