diff options
author | ae <ae@FreeBSD.org> | 2014-01-23 21:30:31 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2014-01-23 21:30:31 +0000 |
commit | 165a2b750024b9cb7404936015efc1ec6548c04a (patch) | |
tree | 525f94cf1b045c7a08b9d01ff26fca890efcd8c7 /sys/geom/geom_ctl.c | |
parent | cb5cd1d9fcfc98e3a6b797244d06c211753226aa (diff) | |
download | FreeBSD-src-165a2b750024b9cb7404936015efc1ec6548c04a.zip FreeBSD-src-165a2b750024b9cb7404936015efc1ec6548c04a.tar.gz |
Always free sbuf in gctl_free().
MFC after: 1 week
Diffstat (limited to 'sys/geom/geom_ctl.c')
-rw-r--r-- | sys/geom/geom_ctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_ctl.c b/sys/geom/geom_ctl.c index b318259..a5fa3d7 100644 --- a/sys/geom/geom_ctl.c +++ b/sys/geom/geom_ctl.c @@ -214,6 +214,7 @@ gctl_free(struct gctl_req *req) { int i; + sbuf_delete(req->serror); if (req->arg == NULL) return; for (i = 0; i < req->narg; i++) { @@ -224,7 +225,6 @@ gctl_free(struct gctl_req *req) g_free(req->arg[i].kvalue); } g_free(req->arg); - sbuf_delete(req->serror); } static void |