https://bugs.winehq.org/show_bug.cgi?id=56563
Bug ID: 56563 Summary: There is a memory leak defect at line 1106 in the file /wine/libs/vkd3d/libs/vkd3d-shader/dxil.c. Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: lumingying@bupt.edu.cn Distribution: ---
In the file /wine/libs/vkd3d/libs/vkd3d-shader/dxil.c, a pointer variable named global_abbrev is defined at line 1085. This variable allocates a dynamic memory area through the function vkd3d_malloc at line 1091. When the if statement at line 1103 returns true, the function will return at line 1106. During this process, the dynamic memory area pointed to by global_abbrev is neither assigned to the function parameter sm6 as shown in line 1115, nor released, thus resulting in a memory leak defect, as illustrated in the diagram below: https://github.com/LuMingYinDetect/wine_defects/blob/main/wine_6.png
https://bugs.winehq.org/show_bug.cgi?id=56563
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal