⬢ DragonFlyBSD Kernel Audit
DF-4496 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/drm/amd/display/dc/dce100/dce100_resource.c
+++ b/sys/dev/drm/amd/display/dc/dce100/dce100_resource.c
@@ -1063,6 +1063,7 @@
 	if (construct(num_virtual_links, dc, pool))
 		return &pool->base;
 
+	kfree(pool);
 	BREAK_TO_DEBUGGER();
 	return NULL;
 }