diff options
author | ae <ae@FreeBSD.org> | 2010-06-07 07:41:41 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2010-06-07 07:41:41 +0000 |
commit | 7233caf7de7e171dc41c5c2a4549aa4130b87621 (patch) | |
tree | 461a7fd8c5c461ba9a4b31ef237a2e56884d09bf /sbin | |
parent | f3da08a0f592e427519092413f290fb53f8c71c9 (diff) | |
download | FreeBSD-src-7233caf7de7e171dc41c5c2a4549aa4130b87621.zip FreeBSD-src-7233caf7de7e171dc41c5c2a4549aa4130b87621.tar.gz |
bgeom(3) does strdup of param name.
Don't leak memory when deleting param from gctl_req.
Reviewed by: marcel
Approved by: mav (mentor)
MFC after: 2 weeks
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/geom/misc/subr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/geom/misc/subr.c b/sbin/geom/misc/subr.c index 21deac8..e71ec74 100644 --- a/sbin/geom/misc/subr.c +++ b/sbin/geom/misc/subr.c @@ -436,6 +436,7 @@ gctl_delete_param(struct gctl_req *req, const char *name) if (i == req->narg) return (ENOENT); + free(ap->name); req->narg--; while (i < req->narg) { req->arg[i] = req->arg[i + 1]; |