diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2020-05-10 13:21:50 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2020-05-10 13:21:50 -0700 |
commit | aaf037ec5c576e46318935feaf6e2b7407ff11a0 (patch) | |
tree | ddd070d0e878d58a1a164e340acb055b3f05d232 /parsedpy.c | |
parent | 4faf0f63f0563513252967a2da1c51de6f5f7b0c (diff) |
Avoid memory leaks in error paths in do_generate
Reported by Oracle Parfait:
Error: Memory leak
Memory leak [memory-leak] (CWE 401):
Memory leak of pointer authdata allocated with malloc((authdatalen - 1))
at line 1955 of process.c in function 'do_generate'.
authdata allocated at line 1946 with malloc((authdatalen - 1))
Memory leak of pointer authdata allocated with malloc((authdatalen - 1))
at line 1971 of process.c in function 'do_generate'.
authdata allocated at line 1946 with malloc((authdatalen - 1))
authdata leaks when (i + 1) >= argc at line 1910.
at line 1980 of process.c in function 'do_generate'.
authdata allocated at line 1946 with malloc((authdatalen - 1))
authdata leaks when (i + 1) >= argc at line 1910.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'parsedpy.c')
0 files changed, 0 insertions, 0 deletions