From: Hartmut Knaack Date: Sun, 31 May 2015 12:39:44 +0000 (+0200) Subject: tools:iio: free channel-array completely X-Git-Tag: omap-for-v4.2/fixes-rc1^2~92^2~256^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63f05c855f3825b89b92cd21df0415e6e32af3dd;p=pandora-kernel.git tools:iio: free channel-array completely In iio_utils.c build_channel_array() dynamically allocates the string generic_name in the current iio_channel_info, which doesn't got freed in case of an error. This dynamically allocated channel-array is used by generic_buffer, and needs to be freed on the error/exit path. Signed-off-by: Hartmut Knaack Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed