mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
couple of memory leaks fixes.
This commit is contained in:
@@ -542,7 +542,7 @@ static SRP_Result fill_buff()
|
||||
|
||||
if (!fp) return SRP_ERR;
|
||||
|
||||
if (fread(g_rand_buff, sizeof(g_rand_buff), 1, fp) != 1) return SRP_ERR;
|
||||
if (fread(g_rand_buff, sizeof(g_rand_buff), 1, fp) != 1) { fclose(fp); return SRP_ERR; }
|
||||
if (fclose(fp)) return SRP_ERR;
|
||||
#endif
|
||||
return SRP_OK;
|
||||
|
Reference in New Issue
Block a user