diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-02-24 23:24:17 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-03-01 19:18:11 -0800 |
commit | b8c26cb3d41b18dfcc14a1ae256f6575c7df7593 (patch) | |
tree | 9aab91d07dfdb95eb562f72c76e14230e0c4cd5a /ident.c | |
parent | 9d424d79ca56e7e372a286fca478996eeee8ebfe (diff) |
makeList: free partially allocated list on failure
Error: Memory leak (CWE 401)
Memory leak of pointer 'first' allocated with malloc(8)
at line 192 of list.c in function 'makeList'.
'first' allocated at line 181 with malloc(8).
first leaks when next == 0 at line 191.
[ This bug was found by the Parfait 0.3.6 bug checking tool.
For more information see http://labs.oracle.com/projects/parfait/ ]
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'ident.c')
0 files changed, 0 insertions, 0 deletions