diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2011-02-24 16:34:51 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-28 14:40:22 -0800 |
commit | cb771cbdbdb153b68275cd5b9eca593c4e5026e8 (patch) | |
tree | d84dbe641fcff5c0fcf037b333f98913ece7d428 /drivers/staging/iio | |
parent | 065896e904eac598bafd5e607b944da34c4aaf09 (diff) | |
download | op-kernel-dev-cb771cbdbdb153b68275cd5b9eca593c4e5026e8.zip op-kernel-dev-cb771cbdbdb153b68275cd5b9eca593c4e5026e8.tar.gz |
IIO: Documentation: iio_utils: Avoid double free()
filename is used and freed later
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/Documentation/iio_utils.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/iio/Documentation/iio_utils.h b/drivers/staging/iio/Documentation/iio_utils.h index 4dc961c..3cf01a5 100644 --- a/drivers/staging/iio/Documentation/iio_utils.h +++ b/drivers/staging/iio/Documentation/iio_utils.h @@ -319,7 +319,6 @@ inline int build_channel_array(const char *device_dir, } fscanf(sysfsfp, "%u", ¤t->enabled); fclose(sysfsfp); - free(filename); current->scale = 1.0; current->offset = 0; current->name = strndup(ent->d_name, |