svn commit: r357567 - head/stand/i386/zfsboot
Toomas Soome
tsoome at FreeBSD.org
Wed Feb 5 05:42:43 UTC 2020
Author: tsoome
Date: Wed Feb 5 05:42:42 2020
New Revision: 357567
URL: https://svnweb.freebsd.org/changeset/base/357567
Log:
vdev_read_pad2: freeing wrong pointer
Shoud free previously allocated tmp buffer instead. Issue introduced in
r357497.
Reported by: rpokala
Modified:
head/stand/i386/zfsboot/zfsboot.c
Modified: head/stand/i386/zfsboot/zfsboot.c
==============================================================================
--- head/stand/i386/zfsboot/zfsboot.c Wed Feb 5 04:43:58 2020 (r357566)
+++ head/stand/i386/zfsboot/zfsboot.c Wed Feb 5 05:42:42 2020 (r357567)
@@ -337,7 +337,7 @@ vdev_read_pad2(vdev_t *vdev, char *buf, size_t size)
rc = vdev_read_phys(vdev, &bp, tmp, off, 0);
if (rc == 0)
memcpy(buf, tmp, size);
- free(buf);
+ free(tmp);
return (rc);
}
More information about the svn-src-all
mailing list