On realloc failure, free font_path_string instead of leaking it
Flagged by cppcheck 1.62:
[dix/dixfonts.c:1792]: (error) Common realloc mistake:
'font_path_string' nulled but not freed upon failure
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by:
Keith Packard <keithp@keithp.com>
Rebased against NX: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Showing
Please
register
or
sign in
to comment