]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/socket-util.c
basic: fix error/memleak in socket-util
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 31 Jul 2015 09:51:33 +0000 (11:51 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Fri, 31 Jul 2015 09:52:21 +0000 (11:52 +0200)
commit0810bc568ace619b16e440805e93256730d45541
treed9178d9ac5b804323ccc7959769a7acb7b8d7b78
parent6189e043d41b5d5eaec11d6a5ab06b5f35c0ddf7
basic: fix error/memleak in socket-util

Probably a typo, checking 'ret' instead of the return value 'p'. This
might cause the function to return failure, even though it succeeded.
Furthermore, it might leak resources.
src/basic/socket-util.c