summaryrefslogtreecommitdiffstats
path: root/lib/libufs/type.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libufs/type.c')
-rw-r--r--lib/libufs/type.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libufs/type.c b/lib/libufs/type.c
index 8a553be..05904b9 100644
--- a/lib/libufs/type.c
+++ b/lib/libufs/type.c
@@ -66,6 +66,10 @@ ufs_disk_close(struct uufsd *disk)
free((char *)(uintptr_t)disk->d_name);
disk->d_name = NULL;
}
+ if (disk->d_sbcsum != NULL) {
+ free(disk->d_sbcsum);
+ disk->d_sbcsum = NULL;
+ }
return (0);
}
@@ -156,6 +160,7 @@ again: if ((ret = stat(name, &st)) < 0) {
disk->d_mine = 0;
disk->d_ufs = 0;
disk->d_error = NULL;
+ disk->d_sbcsum = NULL;
if (oname != name) {
name = strdup(name);
OpenPOWER on IntegriCloud