aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_slice.c
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2004-07-01 12:42:13 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2004-07-01 12:42:13 +0000
commit916a3aa05b6e39b1b44a9f8535edfa3f75b7e2fb (patch)
tree3de2228b7a4df93492a9663afe31232eb70536d6 /sys/geom/geom_slice.c
parent7f1fb91a0a60737fdad2ec2ab435c1263a9a9f59 (diff)
downloadsrc-916a3aa05b6e39b1b44a9f8535edfa3f75b7e2fb.tar.gz
src-916a3aa05b6e39b1b44a9f8535edfa3f75b7e2fb.zip
Notes
Diffstat (limited to 'sys/geom/geom_slice.c')
-rw-r--r--sys/geom/geom_slice.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c
index 95312c0626cf..736ab0c9848c 100644
--- a/sys/geom/geom_slice.c
+++ b/sys/geom/geom_slice.c
@@ -79,7 +79,8 @@ g_slice_free(struct g_slicer *gsp)
g_free(gsp->slices);
if (gsp->hotspot != NULL)
g_free(gsp->hotspot);
- g_free(gsp->softc);
+ if (gsp->softc != NULL)
+ g_free(gsp->softc);
g_free(gsp);
}