[clang-tidy] clang-analyzer-unix.Malloc

This commit is contained in:
akallabeth
2024-01-24 08:21:47 +01:00
committed by akallabeth
parent b8598728a6
commit 0e44b2c674
39 changed files with 247 additions and 117 deletions

View File

@@ -351,7 +351,10 @@ rdpPersistentCache* persistent_cache_new(void)
persistent->bmpData = calloc(1, persistent->bmpSize);
if (!persistent->bmpData)
{
free(persistent);
return NULL;
}
return persistent;
}