From cee08b7a6ea5d48f8527e3497735466e44445b66 Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Sat, 5 Aug 2023 17:34:42 +0200 Subject: tests: free return value of _pam_mkargv() _pam_mkargv() states that callers should free the returned value since otherwise the memory gets leaked. --- tests/tst-pam_mkargv.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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; } -- cgit v1.2.3