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
b96ac007
Commit
b96ac007
authored
Oct 05, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Oct 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Remove redundant NULL checks before CryptMemFree (found by Smatch).
parent
0c74c0a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
protectdata.c
dlls/crypt32/protectdata.c
+8
-15
No files found.
dlls/crypt32/protectdata.c
View file @
b96ac007
...
...
@@ -537,20 +537,13 @@ void free_protect_data(struct protect_data_t * pInfo)
if
(
!
pInfo
)
return
;
if
(
pInfo
->
info0
.
pbData
)
CryptMemFree
(
pInfo
->
info0
.
pbData
);
if
(
pInfo
->
info1
.
pbData
)
CryptMemFree
(
pInfo
->
info1
.
pbData
);
if
(
pInfo
->
szDataDescr
)
CryptMemFree
(
pInfo
->
szDataDescr
);
if
(
pInfo
->
data0
.
pbData
)
CryptMemFree
(
pInfo
->
data0
.
pbData
);
if
(
pInfo
->
salt
.
pbData
)
CryptMemFree
(
pInfo
->
salt
.
pbData
);
if
(
pInfo
->
cipher
.
pbData
)
CryptMemFree
(
pInfo
->
cipher
.
pbData
);
if
(
pInfo
->
fingerprint
.
pbData
)
CryptMemFree
(
pInfo
->
fingerprint
.
pbData
);
CryptMemFree
(
pInfo
->
info0
.
pbData
);
CryptMemFree
(
pInfo
->
info1
.
pbData
);
CryptMemFree
(
pInfo
->
szDataDescr
);
CryptMemFree
(
pInfo
->
data0
.
pbData
);
CryptMemFree
(
pInfo
->
salt
.
pbData
);
CryptMemFree
(
pInfo
->
cipher
.
pbData
);
CryptMemFree
(
pInfo
->
fingerprint
.
pbData
);
}
/* copies a string into a data blob */
...
...
@@ -768,7 +761,7 @@ BOOL load_encryption_key(HCRYPTPROV hProv, DATA_BLOB * salt,
/* clean up */
CryptDestroyHash
(
hSaltHash
);
if
(
szUsername
)
CryptMemFree
(
szUsername
);
CryptMemFree
(
szUsername
);
return
rc
;
}
...
...
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