/* Convert our text */
int rc = iconv(conversion_descriptor, (void*)&input, &input_size, &output, &output_size);
if (rc == (size_t)-1) {
+ free(buffer);
perror("Converting to UCS-2 failed");
return NULL;
}
int rc = iconv(conversion_descriptor2, (void*)&input, &input_size, &output, &output_size);
if (rc == (size_t)-1) {
perror("Converting to UCS-2 failed");
+ free(buffer);
if (real_strlen != NULL)
*real_strlen = 0;
return NULL;
int rc = iconv(conversion_descriptor, (void*)&input, &input_size, &output, &output_size);
if (rc == (size_t)-1) {
perror("Converting to UCS-2 failed");
+ free(buffer);
return NULL;
}
int rc = iconv(conversion_descriptor2, (void*)&input, &input_size, &output, &output_size);
if (rc == (size_t)-1) {
perror("Converting to UCS-2 failed");
+ free(buffer);
if (real_strlen != NULL)
*real_strlen = 0;
return NULL;
int rc = iconv(conversion_descriptor, (void*)&input, &input_size, &output, &output_size);
if (rc == (size_t)-1) {
perror("Converting to UCS-2 failed");
+ FREE(buffer);
if (real_strlen != NULL)
*real_strlen = 0;
return NULL;