mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
[client] Fix potential memory leak on client string parsing errors
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
ca4821fc9e
commit
7468bb6794
1 changed files with 1 additions and 1 deletions
2
client.c
2
client.c
|
@ -831,7 +831,7 @@ client_markup_parse(client_t *c, const char *str, ssize_t len)
|
|||
p->text = NULL;
|
||||
}
|
||||
else
|
||||
return a_strdup(str);
|
||||
ret = a_strdup(str);
|
||||
|
||||
markup_parser_data_delete(&p);
|
||||
p_delete(&title_esc);
|
||||
|
|
Loading…
Reference in a new issue