From 2de6a8b665eda6ac50fe4c507e57e95315a0912b Mon Sep 17 00:00:00 2001 From: kartofen Date: Mon, 16 Oct 2023 23:54:54 +0300 Subject: fix memory leak and code clarity --- src/device.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/device.c') diff --git a/src/device.c b/src/device.c index fdcc7ad..d899062 100644 --- a/src/device.c +++ b/src/device.c @@ -128,8 +128,6 @@ static int create_instance(device_t device, struct device_info *info) extensions[i] = (char *)info->extensions[i]; } - free((void *)info->extensions); - // we just added one more extension create_info.enabledExtensionCount = info->ext_count+1; create_info.ppEnabledExtensionNames = (const char * const *)extensions; -- cgit v1.2.3