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:
parent
fdc17315b7
commit
207a0519ac
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue