mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[clang-tidy] clang-analyzer-unix.Malloc
This commit is contained in:
3
libfreerdp/cache/persistent.c
vendored
3
libfreerdp/cache/persistent.c
vendored
@@ -351,7 +351,10 @@ rdpPersistentCache* persistent_cache_new(void)
|
||||
persistent->bmpData = calloc(1, persistent->bmpSize);
|
||||
|
||||
if (!persistent->bmpData)
|
||||
{
|
||||
free(persistent);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return persistent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user