fixed memory leak

dvh-chacham15-master
DINH Viet Hoa 2011-11-23 15:48:06 +01:00
parent 0c2517ddc5
commit fc0df87cd9
1 changed files with 6 additions and 0 deletions

View File

@ -275,7 +275,13 @@ int charconv_buffer(const char * tocode, const char * fromcode,
*result_len = result_length;
}
}
else {
mmap_string_free(mmapstr);
}
}
else {
mmap_string_free(mmapstr);
}
return res;
}
/* else, let's try with iconv, if available */