WARNING: kfree(NULL) is safe and this check is probably not required