diff options
author | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2014-01-01 22:58:23 -0800 |
---|---|---|
committer | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2014-01-01 22:58:23 -0800 |
commit | e3fe79502a4a1b0f0b148659948d541ce26ed7bf (patch) | |
tree | 0a8cc6bfa88305144593c000bafda31cbb7bb859 /Graphics.c | |
parent | a59538d5d57bd2f8b2101e398a97fe8466b8eef7 (diff) |
Demacro modernization of NewSList to plug a memory leak during error handling
atobm.c:248:6: warning: Potential leak of memory pointed to by 'slist'
NewSList ();
^~~~~~~~~~~
atobm.c:209:3: note: expanded from macro 'NewSList'
fprintf (stderr, "%s: unable to allocate char array\n", \
^~~~~~~
atobm.c:259:6: warning: Potential leak of memory pointed to by 'old'
NewSList ();
^~~~~~~~~~~
atobm.c:209:3: note: expanded from macro 'NewSList'
fprintf (stderr, "%s: unable to allocate char array\n", \
^~~~~~~
atobm.c:259:6: warning: Potential leak of memory pointed to by 'slist'
NewSList ();
^~~~~~~~~~~
atobm.c:209:3: note: expanded from macro 'NewSList'
fprintf (stderr, "%s: unable to allocate char array\n", \
^~~~~~~
3 warnings generated.
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Diffstat (limited to 'Graphics.c')
0 files changed, 0 insertions, 0 deletions