search_type and search_handle fields of blkid_dev_iterate iterator are not being freed after usage. Add cleanup code. Signed-off-by: Igor Bazhitov <igor.bazhitov@xxxxxxxxx>
diff --git a/shlibs/blkid/src/dev.c b/shlibs/blkid/src/dev.c index 24d989d..791a6c1 100644 --- a/shlibs/blkid/src/dev.c +++ b/shlibs/blkid/src/dev.c @@ -193,6 +193,8 @@ extern void blkid_dev_iterate_end(blkid_dev_iterate iter) if (!iter || iter->magic != DEV_ITERATE_MAGIC) return; iter->magic = 0; + free(iter->search_type); + free(iter->search_value); free(iter); }