OpenCoreUefiAudio: Avoid assertion on NULL free
@@ -393,7 +393,9 @@ OcLoadUefiAudioSupport (
? Config->Uefi.Audio.MinimumVolume : VolumeLevel
);
+ if (DevicePath != NULL) {
FreePool (DevicePath);
+ }
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "OC: Audio connection failed - %r\n", Status));
