intel/common: fix building error in intel_common.c

Fixes the following building error:

../out_src/src/intel/common/intel_common.c:29:4: error: implicit declaration of function 'free' is invalid in C99 [-Werror,-Wimplicit-function-declarat
ion]
   free(engine_info);
   ^
1 error generated.

Fixes: 5b8b4f78 ("intel/dev: Add engine_class_supported_count to intel_device_info")
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29975>
This commit is contained in:
Mauro Rossi
2024-06-28 23:56:44 +02:00
committed by Marge Bot
parent 74ba5cf885
commit 87ad3ca0ac

View File

@@ -3,6 +3,8 @@
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
*/ */
#include <stdlib.h>
#include "intel_common.h" #include "intel_common.h"
#include "intel_engine.h" #include "intel_engine.h"