Skip to content
Browse files

fixed memory leak

  • Loading branch information...
1 parent 0c2517d commit fc0df87cd98436b54837985f479ea83d5502be01 @dinhviethoa dinhviethoa committed Nov 23, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/data-types/charconv.c
View
6 src/data-types/charconv.c
@@ -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 */

0 comments on commit fc0df87

Please sign in to comment.
Something went wrong with that request. Please try again.