mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-06 11:28:29 +02:00
fix memleak in error path
free all mem on error Signed-off-by: walter harms <wharms@bfs.de>
This commit is contained in:
parent
ed9f0d34ab
commit
433477fcb7
1 changed files with 1 additions and 0 deletions
|
|
@ -77,6 +77,7 @@ create(
|
|||
return lcd;
|
||||
|
||||
err:
|
||||
Xfree(lcd->core);
|
||||
Xfree(lcd);
|
||||
return (XLCd) NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue