From: Hartmut Knaack Date: Sun, 31 May 2015 12:39:45 +0000 (+0200) Subject: tools:iio:iio_utils: fix allocation handling X-Git-Tag: omap-for-v4.3/legacy-v2-signed~121^2~256^2~47 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=121b5e505fe86ea52603c946865d658a5fe8130b;p=pandora-kernel.git tools:iio:iio_utils: fix allocation handling In build_channel_array(), count needs to be decreased in more places since current->name and current->generic_name would be freed on the error path, although they have not been allocated, yet. This also requires to free current->name, when it is allocated, but current->generic_name is not yet allocated. Signed-off-by: Hartmut Knaack Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed