diff options
author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2004-07-01 12:42:13 +0000 |
---|---|---|
committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2004-07-01 12:42:13 +0000 |
commit | 916a3aa05b6e39b1b44a9f8535edfa3f75b7e2fb (patch) | |
tree | 3de2228b7a4df93492a9663afe31232eb70536d6 /sys/geom/geom_slice.c | |
parent | 7f1fb91a0a60737fdad2ec2ab435c1263a9a9f59 (diff) | |
download | src-916a3aa05b6e39b1b44a9f8535edfa3f75b7e2fb.tar.gz src-916a3aa05b6e39b1b44a9f8535edfa3f75b7e2fb.zip |
Notes
Diffstat (limited to 'sys/geom/geom_slice.c')
-rw-r--r-- | sys/geom/geom_slice.c | 3 |
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); } |