mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
scanner: Plug memory leak in end_element()
This commit is contained in:
parent
00902b3815
commit
e760ec9fa9
1 changed files with 1 additions and 1 deletions
|
|
@ -462,7 +462,7 @@ end_element(void *data, const XML_Char *name)
|
|||
char *text = strndup(ctx->character_data,
|
||||
ctx->character_data_length);
|
||||
if (text)
|
||||
ctx->description->text = strdup(text);
|
||||
ctx->description->text = text;
|
||||
ctx->description = NULL;
|
||||
} else if (strcmp(name, "request") == 0 ||
|
||||
strcmp(name, "event") == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue