summaryrefslogtreecommitdiff
path: root/ULabel.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-05-26 22:58:14 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-05-26 22:58:14 -0700
commitbc51dd4cdf617ba44ed1231d411eb8d63616e371 (patch)
treeb5de86614cc27588dee639108ec12154e08f6e31 /ULabel.c
parent4faa8afa1856a015a63efb12a466b5fd060c1af5 (diff)
Prevent memory leak in GetFontNames if no fonts are matched
Defer creating ParseRec until after we check for numFonts = 0 and return. Fixes error found by Parfait 0.5.0.2 bug checking tool: Memory leak of pointer '<unknown>' allocated with XtMalloc(40) at line 466 of app/xfontsel/xfontsel.c in function 'GetFontNames'. pointer allocated at line 447 with XtMalloc(40). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'ULabel.c')
0 files changed, 0 insertions, 0 deletions