From: | Bean Zhang <bean.zhang@centrify.com> |
To: | "krb5-bugs@mit.edu" <krb5-bugs@mit.edu> |
Subject: | Resource leak in read_secret_file() |
Date: | Wed, 20 Jun 2018 03:47:14 +0000 |
Hi Team,
In read_secret_file() of krb5-1.16.1/src/plugins/preauth/otp/otp_state.c,
When calls k5_path_join(), will store the allocated memory to filename,
later if this function returns, it does not free the memory filename points to.
The fix is to call "free(filename)" before function returns.
Could someone help to take a look?
Thanks,
Bean