onfiguration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu'
-DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g -O2
uname output: Linux lfs78 4.4.0-lfs-SVN-20160112 #1 SMP Tue Jan 12
00:17:11 CST 2016 x86_64 GNU/Linux
Machine Type: x86_64-unknown-linux-gnu
Bash Version: 4.4
Patch Level: 0
Release Status: release
Description:
When running regression tests on libinput, I get two different leaks
identified by valgrind. The files below are not a part of libinput but are
a part of bash.
==10733== 11 bytes in 1 blocks are definitely lost in loss record 81
of 290
==10733== at 0x4C2AACD: malloc (vg_replace_malloc.c:299)
==10733== by 0x46F7BD: xmalloc (xmalloc.c:112)
==10733== by 0x469598: set_default_locale (locale.c:81)
==10733== by 0x419950: main (shell.c:411)
==10733==
==10733== 17 bytes in 1 blocks are definitely lost in loss record 112
of 290
==10733== at 0x4C2AACD: malloc (vg_replace_malloc.c:299)
==10733== by 0x46F7BD: xmalloc (xmalloc.c:112)
==10733== by 0x4524EA: make_dev_fd_filename (subst.c:5692)
==10733== by 0x4524EA: process_substitute (subst.c:5751)
==10733== by 0x4524EA: expand_word_internal (subst.c:9172)
==10733== by 0x454E33: shell_expand_word_list (subst.c:10565)
==10733== by 0x454E33: expand_word_list_internal (subst.c:10688)
==10733== by 0x42F14E: execute_simple_command (execute_cmd.c:4153)
==10733== by 0x43134B: execute_command_internal (execute_cmd.c:802)
==10733== by 0x432BDD: execute_command (execute_cmd.c:405)
==10733== by 0x41BD51: reader_loop (eval.c:180)
==10733== by 0x41AAAA: main (shell.c:792)
I was not able to trace everything through, but xmalloc.c:112 does:
temp = malloc (bytes);
and as best I can tell, temp is never freed.
Repeat-By:
When building libinput, after make, run 'make check'