Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
56026299
Commit
56026299
authored
Jun 07, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove more redundant NULL checks before HeapFree (found by Smatch).
parent
4e66d479
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
install.c
dlls/advpack/install.c
+1
-1
install.c
dlls/setupapi/install.c
+1
-1
assoc.c
dlls/shlwapi/assoc.c
+6
-6
dib.c
dlls/x11drv/dib.c
+1
-1
listview.c
programs/regedit/listview.c
+1
-1
No files found.
dlls/advpack/install.c
View file @
56026299
...
...
@@ -274,7 +274,7 @@ static HRESULT iterate_section_fields(HINF hinf, PCWSTR section, PCWSTR key,
hr
=
S_OK
;
done:
if
(
buffer
&&
buffer
!=
static_buffer
)
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
if
(
buffer
!=
static_buffer
)
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
return
hr
;
}
...
...
dlls/setupapi/install.c
View file @
56026299
...
...
@@ -787,7 +787,7 @@ static BOOL iterate_section_fields( HINF hinf, PCWSTR section, PCWSTR key,
}
ret
=
TRUE
;
done:
if
(
buffer
&&
buffer
!=
static_buffer
)
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
if
(
buffer
!=
static_buffer
)
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
return
ret
;
}
...
...
dlls/shlwapi/assoc.c
View file @
56026299
...
...
@@ -220,10 +220,10 @@ HRESULT WINAPI AssocQueryKeyA(ASSOCF cfFlags, ASSOCKEY assockey, LPCSTR pszAssoc
hRet
=
AssocQueryKeyW
(
cfFlags
,
assockey
,
lpszAssocW
,
lpszExtraW
,
phkeyOut
);
}
if
(
lpszAssocW
&&
lpszAssocW
!=
szAssocW
)
if
(
lpszAssocW
!=
szAssocW
)
HeapFree
(
GetProcessHeap
(),
0
,
lpszAssocW
);
if
(
lpszExtraW
&&
lpszExtraW
!=
szExtraW
)
if
(
lpszExtraW
!=
szExtraW
)
HeapFree
(
GetProcessHeap
(),
0
,
lpszExtraW
);
return
hRet
;
...
...
@@ -312,14 +312,14 @@ HRESULT WINAPI AssocQueryStringA(ASSOCF cfFlags, ASSOCSTR str, LPCSTR pszAssoc,
WideCharToMultiByte
(
CP_ACP
,
0
,
szReturnW
,
-
1
,
pszOut
,
dwLenOut
,
0
,
0
);
*
pcchOut
=
dwLenOut
;
if
(
lpszReturnW
&&
lpszReturnW
!=
szReturnW
)
if
(
lpszReturnW
!=
szReturnW
)
HeapFree
(
GetProcessHeap
(),
0
,
lpszReturnW
);
}
}
if
(
lpszAssocW
&&
lpszAssocW
!=
szAssocW
)
if
(
lpszAssocW
!=
szAssocW
)
HeapFree
(
GetProcessHeap
(),
0
,
lpszAssocW
);
if
(
lpszExtraW
&&
lpszExtraW
!=
szExtraW
)
if
(
lpszExtraW
!=
szExtraW
)
HeapFree
(
GetProcessHeap
(),
0
,
lpszExtraW
);
return
hRet
;
}
...
...
@@ -406,7 +406,7 @@ HRESULT WINAPI AssocQueryStringByKeyA(ASSOCF cfFlags, ASSOCSTR str, HKEY hkAssoc
}
}
if
(
lpszExtraW
&&
lpszExtraW
!=
szExtraW
)
if
(
lpszExtraW
!=
szExtraW
)
HeapFree
(
GetProcessHeap
(),
0
,
lpszExtraW
);
return
hRet
;
}
...
...
dlls/x11drv/dib.c
View file @
56026299
...
...
@@ -4157,7 +4157,7 @@ INT X11DRV_GetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT startscan,
info
->
bmiHeader
.
biCompression
=
0
;
}
if
(
descr
.
colorMap
&&
descr
.
colorMap
!=
colorPtr
)
if
(
descr
.
colorMap
!=
colorPtr
)
HeapFree
(
GetProcessHeap
(),
0
,
descr
.
colorMap
);
return
lines
;
}
...
...
programs/regedit/listview.c
View file @
56026299
...
...
@@ -81,7 +81,7 @@ LPCTSTR GetValueName(HWND hwndLV)
{
INT
item
;
if
(
g_valueName
&&
g_valueName
!=
LPSTR_TEXTCALLBACK
)
if
(
g_valueName
!=
LPSTR_TEXTCALLBACK
)
HeapFree
(
GetProcessHeap
(),
0
,
g_valueName
);
g_valueName
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment