diff options
author | phk <phk@FreeBSD.org> | 2003-01-18 11:33:06 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-01-18 11:33:06 +0000 |
commit | 5bbadf161c28417b58e262f19981cdeb9d3caf4a (patch) | |
tree | e4725f5ac74af86c4be78ab73fe6f7060bbf7edb /sys | |
parent | 76e3af26c77a4970302061dcf09dfc3b8b34c0c4 (diff) | |
download | FreeBSD-src-5bbadf161c28417b58e262f19981cdeb9d3caf4a.zip FreeBSD-src-5bbadf161c28417b58e262f19981cdeb9d3caf4a.tar.gz |
Fix minor memory-leak.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ccd/ccd.c | 1 | ||||
-rw-r--r-- | sys/geom/geom_ccd.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c index 7b1ecef..84e46a6 100644 --- a/sys/dev/ccd/ccd.c +++ b/sys/dev/ccd/ccd.c @@ -1397,6 +1397,7 @@ ccdioctltoo(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td) ccdunlock(cs); return (error); } + free(cpp, M_CCD); /* * The ccd has been successfully initialized, so diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c index 7b1ecef..84e46a6 100644 --- a/sys/geom/geom_ccd.c +++ b/sys/geom/geom_ccd.c @@ -1397,6 +1397,7 @@ ccdioctltoo(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td) ccdunlock(cs); return (error); } + free(cpp, M_CCD); /* * The ccd has been successfully initialized, so |