diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-08-05 17:34:42 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2023-08-07 12:26:41 +0200 |
commit | cee08b7a6ea5d48f8527e3497735466e44445b66 (patch) | |
tree | 9f010ab044848763302eef0462495c1759c0e4a7 | |
parent | 9facab2134a9e1142ab3c614e72eb25aaafd0dec (diff) | |
download | pam-cee08b7a6ea5d48f8527e3497735466e44445b66.tar.gz pam-cee08b7a6ea5d48f8527e3497735466e44445b66.tar.bz2 pam-cee08b7a6ea5d48f8527e3497735466e44445b66.zip |
tests: free return value of _pam_mkargv()
_pam_mkargv() states that callers should free the returned value since
otherwise the memory gets leaked.
-rw-r--r-- | tests/tst-pam_mkargv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tst-pam_mkargv.c b/tests/tst-pam_mkargv.c index cb005e5f..17a5a854 100644 --- a/tests/tst-pam_mkargv.c +++ b/tests/tst-pam_mkargv.c @@ -50,5 +50,7 @@ int main(void) return 1; } + free(myargv); + return 0; } |