summaryrefslogtreecommitdiff
path: root/parsedpy.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2020-05-10 13:21:50 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2020-05-10 13:21:50 -0700
commitaaf037ec5c576e46318935feaf6e2b7407ff11a0 (patch)
treeddd070d0e878d58a1a164e340acb055b3f05d232 /parsedpy.c
parent4faf0f63f0563513252967a2da1c51de6f5f7b0c (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