[client] Fix potential memory leak on client string parsing errors

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-04-28 22:22:38 +02:00
parent ca4821fc9e
commit 7468bb6794

View file

@ -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);