mirror of
https://abf.rosa.ru/djam/pam.git
synced 2025-02-23 16:32:51 +00:00
23 lines
653 B
Diff
23 lines
653 B
Diff
From cee08b7a6ea5d48f8527e3497735466e44445b66 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
|
|
Date: Sat, 5 Aug 2023 17:34:42 +0200
|
|
Subject: [PATCH] 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(+)
|
|
|
|
diff --git a/tests/tst-pam_mkargv.c b/tests/tst-pam_mkargv.c
|
|
index cb005e5ff..17a5a854a 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;
|
|
}
|