Do not free nullpointer in Darwin disk reading

Calling CFRelease() on a NULL value is wrong and causes crashes.
This should fix MacPorts ticket #29565.
This commit is contained in:
Stefan Gehn 2011-12-05 17:12:28 +01:00
parent fdc17315b7
commit 207a0519ac
1 changed files with 0 additions and 1 deletions

View File

@ -450,7 +450,6 @@ gkrellm_sys_disk_read_data(void)
gkrellm_debug(DEBUG_SYSDEP,
"No statistics dict found in storage driver, skipping disk '%s'\n",
disk->path);
CFRelease(storage_driver_stats);
IOObjectRelease(storage_driver);
continue;
}