summaryrefslogtreecommitdiffstats
path: root/e2fsprogs-1.39-leak.patch
blob: d4ecbb41f76f12d86af3744c2e55160f5a4bb811 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- e2fsprogs-1.39/lib/blkid/probe.c.leak	2006-09-05 15:41:13.000000000 -0400
+++ e2fsprogs-1.39/lib/blkid/probe.c	2006-09-05 15:40:19.000000000 -0400
@@ -884,7 +884,12 @@
 	}
 
 	if (!dev->bid_type) {
-		if (probe.fd >= 0) close(probe.fd);
+		if (probe.fd >= 0)
+                    close(probe.fd);
+	        if (probe.sbbuf)
+		    free(probe.sbbuf);
+	        if (probe.buf)
+		    free(probe.buf);
 		blkid_free_dev(dev);
 		return NULL;
 	}