diff options
author | fjoe <fjoe@FreeBSD.org> | 2004-09-19 10:27:46 +0000 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2004-09-19 10:27:46 +0000 |
commit | 2a220bb5b025dd9f7252cd8f631d7e39a1dc2984 (patch) | |
tree | c3f8689cd52dfeaf83eb9442ebb7c249cdece855 /sys/geom/uzip/g_uzip.c | |
parent | 0eac437676f2e77231ee2391fea1689498186611 (diff) | |
download | FreeBSD-src-2a220bb5b025dd9f7252cd8f631d7e39a1dc2984.zip FreeBSD-src-2a220bb5b025dd9f7252cd8f631d7e39a1dc2984.tar.gz |
Use correct malloc type when freeing memory allocated by g_read_data.
PR: 71431
Submitted by: daichi
Diffstat (limited to 'sys/geom/uzip/g_uzip.c')
-rw-r--r-- | sys/geom/uzip/g_uzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/uzip/g_uzip.c b/sys/geom/uzip/g_uzip.c index acb253b..747ca56 100644 --- a/sys/geom/uzip/g_uzip.c +++ b/sys/geom/uzip/g_uzip.c @@ -424,7 +424,7 @@ g_uzip_taste(struct g_class *mp, struct g_provider *pp, int flags) for (blk = 1; offsets_read < total_offsets; blk++) { uint32_t nread; - free(buf, M_GEOM_UZIP); + free(buf, M_GEOM); buf = g_read_data( cp, blk * pp->sectorsize, pp->sectorsize, &error); if (buf == NULL || error != 0) @@ -470,7 +470,7 @@ err: g_topology_lock(); g_access(cp, -1, 0, 0); if (buf != NULL) - free(buf, M_GEOM_UZIP); + free(buf, M_GEOM); if (gp->softc != NULL) { g_uzip_softc_free(gp->softc, NULL); gp->softc = NULL; |