projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7a0260
)
Fix a possible resource leak (free the old up)
author
Laszlo Papp
<ext-laszlo.papp@nokia.com>
Mon, 14 Mar 2011 13:38:08 +0000
(15:38 +0200)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Wed, 30 Mar 2011 17:34:58 +0000
(19:34 +0200)
lib/modules/iconv.c
patch
|
blob
|
history
diff --git
a/lib/modules/iconv.c
b/lib/modules/iconv.c
index ca62c82cf0951fcef2dc75ef37581fbdd5f0dcd0..b9946d9ea7e340e98d074adc4a028d7d6c73d928 100644
(file)
--- a/
lib/modules/iconv.c
+++ b/
lib/modules/iconv.c
@@
-716,6
+716,10
@@
out_free:
free(ic->from_code);
free(ic->to_code);
free(ic);
+ if (old) {
+ setlocale(LC_CTYPE, old);
+ free(old);
+ }
return NULL;
}