]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/path-lookup: fix leak
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 14 Apr 2016 01:10:33 +0000 (21:10 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 14 Apr 2016 01:10:33 +0000 (21:10 -0400)
commite215d211d25139a46970101525ebdde874daf2f0
treed7ad3f12cb324c640d268132eb86dca19425d6ee
parentea9b54f827feff046d7d6e5c485d01cf98214762
shared/path-lookup: fix leak

CID #1354671: char **l would be leaked.

Also rename l to paths, to make the code easier to read,
and do strv deduplication immediately when extending. No need to allocate
strings to remove them a few lines down.
src/shared/path-lookup.c