mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-08 20:12:01 +03:00
Squash leak
svn path=/trunk/netsurf/; revision=6561
This commit is contained in:
parent
ae781b4fd8
commit
a3fecdf1fc
@ -502,6 +502,8 @@ utf8_convert_ret utf8_convert(const char *string, size_t len,
|
||||
if (iconv(cd, &in, &slen, &out, &rlen) == (size_t)-1) {
|
||||
free(temp);
|
||||
/* clear the cached conversion descriptor as it's invalid */
|
||||
if (last_cd.cd)
|
||||
iconv_close(last_cd.cd);
|
||||
last_cd.from[0] = '\0';
|
||||
last_cd.to[0] = '\0';
|
||||
last_cd.cd = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user