From 5caa4117b40ea9babf4aee6e8786fb70507ee1b8 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Thu, 17 Mar 2022 12:41:48 +0100
Subject: [PATCH] libblkid: make blkid_free_probe() more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
---
 libblkid/src/probe.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c
index 2e0e08ac1d..31706240fc 100644
--- a/libblkid/src/probe.c
+++ b/libblkid/src/probe.c
@@ -251,6 +251,7 @@ void blkid_free_probe(blkid_probe pr)
 		if (ch->driver->free_data)
 			ch->driver->free_data(pr, ch->data);
 		free(ch->fltr);
+		ch->fltr = NULL;
 	}
 
 	if ((pr->flags & BLKID_FL_PRIVATE_FD) && pr->fd >= 0)
