]> git.ipfire.org Git - thirdparty/systemd.git/commit
creds: fix leak of arg_tpm2_device 20186/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 9 Jul 2021 13:29:47 +0000 (15:29 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 9 Jul 2021 13:29:47 +0000 (15:29 +0200)
commitd1829af943d0d47c745c3ce789690493e7b8107a
tree5b929eaa72a9303328c54622fb390d5f124ded1e
parent89fa9a6b7b2505aa2ce18febf1e28e79510dfec2
creds: fix leak of arg_tpm2_device

IIUC, "auto" is the same as NULL. There is no need to strdup() anything.

Coverity CID#1458113.
src/creds/creds.c