Fix free inv
@@ -1115,6 +1115,7 @@ int _inv(npy_float64 *m, npy_float64 *invOut)
det = m[0] * inv[0] + m[1] * inv[4] + m[2] * inv[8] + m[3] * inv[12];
if (det == 0)
+ free(inv);
return 0;
det = 1.0 / det;
