chore: remove unnecessary NULL checks

Fix #1494
This commit is contained in:
李通洲 committed 2025-01-10 14:01:48 +08:00
1 parent 8c227ae4b8
commit 1bc41dfa54
2 files changed
+2 -4

No files matched your search

+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;
+1 -2
View File
@@ -74,8 +74,7 @@ static bool detectPlasmaFromFile(const char* filename, FFQtResult* result)
}
}
if(line != NULL)
free(line);
free(line);
fclose(kdeglobals);