]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/mangle: fix a memory leak in the test case
authorCong Wang <xiyou.wangcong@gmail.com>
Wed, 20 Jun 2012 08:42:05 +0000 (16:42 +0800)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Jun 2012 06:21:43 +0000 (08:21 +0200)
commita0b25068abe2931dc666b216b88bb837579cc60c
tree64579fb2e75f01e1864a8abc79f9e4a1d457ccce
parentcffee0de0cf7c0d44323a830beb313d5ae18247d
lib/mangle: fix a memory leak in the test case

Marek reported there is a memory leak in lib/mangle.c

  CC       mangle.o
mangle.c:160:9: warning: Memory is never released; potential leak of memory pointed to by 'ss'

This patch fixes it.

Reported-by: Marek Otahal <markotahal@gmail.com>
Cc: Karel Zak <kzak@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
lib/mangle.c