Skip to content

Commit a14b37d

Browse files
committed
buffer: Free attributes list when destroying buffer
Free the attributes list, so that we don't leak memory. Signed-off-by: Paul Cercueil <[email protected]>
1 parent 23caa4f commit a14b37d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

buffer.c

+1
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ void iio_buffer_destroy(struct iio_buffer *buf)
195195
iio_task_destroy(buf->worker);
196196
iio_mutex_destroy(buf->lock);
197197
iio_channels_mask_destroy(buf->mask);
198+
free(buf->attrlist.attrs);
198199
free(buf);
199200
}
200201

0 commit comments

Comments
 (0)