diff --git a/media_driver/linux/common/ddi/media_libva.cpp b/media_driver/linux/common/ddi/media_libva.cpp index d349965a2..d5cb00a5a 100755 --- a/media_driver/linux/common/ddi/media_libva.cpp +++ b/media_driver/linux/common/ddi/media_libva.cpp @@ -1583,9 +1583,6 @@ static int DdiMedia_SelectIntelDevice() } if (strncmp(version->name, "i915", strlen("i915")) == 0) { intel_gpu_index = i; - drmFreeVersion(version); - close(temp); - break; } drmFreeVersion(version); close(temp);