Skip to content

Commit

Permalink
fixed memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhvh committed Nov 23, 2011
1 parent 0c2517d commit fc0df87
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/data-types/charconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit fc0df87

Please sign in to comment.