a/vive: Fix use after free

This commit is contained in:
Jakob Bornecrantz 2023-09-23 10:57:46 +01:00
parent d9fe5eaf5d
commit ba08985126

View file

@ -383,7 +383,6 @@ _calculate_fov(struct vive_config *d)
&d->distortion.fov[eye]); //
if (!bret) {
VIVE_ERROR(d, "Failed to compute the partial fields of view.");
free(d);
return false;
}
}