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; _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"