nfqws,tpws: remove null pointer checks before free()

This commit is contained in:
bol-van
2025-01-09 18:56:01 +03:00
parent f21bd0c63c
commit 29ff997a3f
7 changed files with 19 additions and 33 deletions

View File

@@ -65,11 +65,8 @@ int z_readfile(FILE *F, char **buf, size_t *size)
zerr:
inflateEnd(&zs);
if (*buf)
{
free(*buf);
*buf = NULL;
}
free(*buf);
*buf = NULL;
return r;
}