chore: remove unnecessary NULL checks

Fix #1494
This commit is contained in:
李通洲
2025-01-10 14:01:12 +08:00
parent 8c227ae4b8
commit 1bc41dfa54
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -99,8 +99,7 @@ const char* ffDiskIOGetIoCounters(FFlist* result, FFDiskIOOptions* options)
device->writeCount = current->num_writes;
}
if (stats.dinfo->mem_ptr)
free(stats.dinfo->mem_ptr);
free(stats.dinfo->mem_ptr);
free(stats.dinfo);
return NULL;