Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > gnu.bash.bug > #11213
| From | Ondrej Oprala <ooprala@redhat.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | bash leaks a pointer |
| Date | 2015-07-15 10:29 +0200 |
| Message-ID | <mailman.6946.1436948982.904.bug-bash@gnu.org> (permalink) |
$ export LC_ALL=en_US.UTF-8 $ valgrind --leak-check=full /bin/bash -c 'exit 0' #<snip> ==4190== HEAP SUMMARY: ==4190== in use at exit: 22,269 bytes in 614 blocks ==4190== total heap usage: 698 allocs, 84 frees, 29,706 bytes allocated ==4190== ==4190== 12 bytes in 1 blocks are definitely lost in loss record 77 of 218 ==4190== at 0x4C28C10: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==4190== by 0x18928F: xmalloc (in /usr/bin/bash) ==4190== by 0x18306A: set_default_locale (in /usr/bin/bash) ==4190== by 0x1360B0: main (in /usr/bin/bash) ==4190== #</snip> set_default_locale leaks a pointer (alloced by savestring()) if LC_ALL is non-empty. Currently, I don't see the "default_locale" var used anywhere in the code base, the only ocurrence is in a "#if 0" directive. Thanks, Ondrej
Back to gnu.bash.bug | Previous | Next | Find similar
bash leaks a pointer Ondrej Oprala <ooprala@redhat.com> - 2015-07-15 10:29 +0200
csiph-web