Remove the null checker before free.
Approved by: bapt (mentor) Obtained from: OpenBSD Differential Revision: https://reviews.freebsd.org/D4549
This commit is contained in:
parent
474fa6a744
commit
84e29f233a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292272
@ -353,8 +353,7 @@ aldap_parse_page_control(struct ber_element *control, size_t len)
|
||||
void
|
||||
aldap_freepage(struct aldap_page_control *page)
|
||||
{
|
||||
if (page->cookie)
|
||||
free(page->cookie);
|
||||
free(page->cookie);
|
||||
free(page);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user