Date: Thu, 23 Jan 2014 21:30:31 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r261091 - head/sys/geom Message-ID: <201401232130.s0NLUVkq037352@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Thu Jan 23 21:30:31 2014 New Revision: 261091 URL: http://svnweb.freebsd.org/changeset/base/261091 Log: Always free sbuf in gctl_free(). MFC after: 1 week Modified: head/sys/geom/geom_ctl.c Modified: head/sys/geom/geom_ctl.c ============================================================================== --- head/sys/geom/geom_ctl.c Thu Jan 23 20:35:32 2014 (r261090) +++ head/sys/geom/geom_ctl.c Thu Jan 23 21:30:31 2014 (r261091) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401232130.s0NLUVkq037352>