]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: fix memleak because of ambiguous tags
authorRuediger Meier <ruediger.meier@ga-group.nl>
Wed, 16 Mar 2016 12:18:19 +0000 (13:18 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Mar 2016 13:17:34 +0000 (14:17 +0100)
commite5fc6d6fb57c1fb22b6dcff584639ade37ad8b9b
treeae2a9005a3f4818b796f50d205337f478efc50c3
parentc95e3889725389e9d7e24d29c2a71b015959575f
lscpu: fix memleak because of ambiguous tags

Now the first one of certain ambiguous tags wins. Alternatively to
this patch we could have called free() before xstrdup().

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
sys-utils/lscpu.c
tests/expected/lscpu/lscpu-x86_64-64cpu
tests/expected/lscpu/lscpu-x86_64-dell_e4310