mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-28 16:13:53 +03:00
std: Fix a memleak on error in c_iconv().
CID: #1032806 Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
parent
7c4c7f1b04
commit
0876c18ec9
1 changed files with 1 additions and 0 deletions
|
@ -124,6 +124,7 @@ static char *c_iconv(const char* str, enum iconv_direction dir)
|
|||
}
|
||||
|
||||
if (ret == (size_t)-1) {
|
||||
SAFE_FREE(out);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue