summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2023-10-16 23:54:54 +0300
committerkartofen <mladenovnasko0@gmail.com>2023-10-16 23:54:54 +0300
commit2de6a8b665eda6ac50fe4c507e57e95315a0912b (patch)
treee982725c0d1d79bca2be3c20363a30763e8dcd38 /src/device.c
parent5e910c7e41d18dab95e34ceb6e620a8958197ae6 (diff)
fix memory leak and code clarity
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c2
1 files changed, 0 insertions, 2 deletions
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;