diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-12-18 10:07:04 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-12-18 09:10:08 +0000 |
commit | 5b6b264d4dc343da765ed8a1a1c4bf06edb53619 (patch) | |
tree | 3e499066653f36cd9d95f51422fe93fdd40f7dd2 /conf | |
parent | b6691ab45726a77fc06f5f6fa2c95a22e781ccc9 (diff) | |
download | pam-5b6b264d4dc343da765ed8a1a1c4bf06edb53619.tar.gz pam-5b6b264d4dc343da765ed8a1a1c4bf06edb53619.tar.bz2 pam-5b6b264d4dc343da765ed8a1a1c4bf06edb53619.zip |
conf/pam_conv1: fix memory leak
Free service name after processing, since it is not used anymore after
the filename has been created.
Co-authored-by: Benny Baumann <BenBE@geshi.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/pam_conv1/pam_conv_y.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/pam_conv1/pam_conv_y.y b/conf/pam_conv1/pam_conv_y.y index 20b91ad1..365d86f3 100644 --- a/conf/pam_conv1/pam_conv_y.y +++ b/conf/pam_conv1/pam_conv_y.y @@ -100,6 +100,7 @@ line exit(1); } free(filename); + free($1); /* $2 = module-type */ fprintf(conf, "%-10s", $2); |