Date: Thu, 1 May 2014 15:23:20 +0000 (UTC) From: Luiz Otavio O Souza <loos@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r265197 - head/sys/geom/uzip Message-ID: <201405011523.s41FNKh1008082@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: loos Date: Thu May 1 15:23:20 2014 New Revision: 265197 URL: http://svnweb.freebsd.org/changeset/base/265197 Log: Fix a leak in g_uzip_taste(). After retrieve all the block offsets from the uzip image, free the last data read. Modified: head/sys/geom/uzip/g_uzip.c Modified: head/sys/geom/uzip/g_uzip.c ============================================================================== --- head/sys/geom/uzip/g_uzip.c Thu May 1 15:04:32 2014 (r265196) +++ head/sys/geom/uzip/g_uzip.c Thu May 1 15:23:20 2014 (r265197) @@ -479,6 +479,7 @@ g_uzip_taste(struct g_class *mp, struct } offsets_read += nread; } + free(buf, M_GEOM); DPRINTF(("%s: done reading offsets\n", gp->name)); mtx_init(&sc->last_mtx, "geom_uzip cache", NULL, MTX_DEF); sc->last_blk = -1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405011523.s41FNKh1008082>