Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dragoș Haiduc
OpenLDAP
Commits
da00e5da
Commit
da00e5da
authored
23 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Use LDAP_FREE instead of free
parent
a802f32f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/libldap/getdn.c
+2
-2
2 additions, 2 deletions
libraries/libldap/getdn.c
libraries/libldap_r/tpool.c
+5
-5
5 additions, 5 deletions
libraries/libldap_r/tpool.c
with
7 additions
and
7 deletions
libraries/libldap/getdn.c
+
2
−
2
View file @
da00e5da
...
...
@@ -533,9 +533,9 @@ ldap_avafree( LDAPAVA *ava )
#if 0
/* la_attr is now contiguous with ava, not freed separately */
free
( ava->la_attr.bv_val );
LDAP_FREE
( ava->la_attr.bv_val );
#endif
free
(
ava
->
la_value
.
bv_val
);
LDAP_FREE
(
ava
->
la_value
.
bv_val
);
LDAP_FREE
(
ava
);
}
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap_r/tpool.c
+
5
−
5
View file @
da00e5da
...
...
@@ -141,7 +141,7 @@ ldap_pvt_thread_pool_init (
ldap_pvt_thread_mutex_unlock(&ldap_pvt_thread_pool_mutex);
ldap_pvt_thread_cond_destroy(&pool->ltp_cond);
ldap_pvt_thread_mutex_destroy(&pool->ltp_mutex);
free
(pool);
LDAP_FREE
(pool);
return(-1);
}
#endif
...
...
@@ -233,7 +233,7 @@ ldap_pvt_thread_pool_submit (
ldap_int_thread_ctx_s
,
ltc_next
.
q
);
pool
->
ltp_pending_count
++
;
ldap_pvt_thread_mutex_unlock
(
&
pool
->
ltp_mutex
);
free
(
ctx
);
LDAP_FREE
(
ctx
);
return
(
-
1
);
}
}
...
...
@@ -336,18 +336,18 @@ ldap_pvt_thread_pool_destroy ( ldap_pvt_thread_pool_t *tpool, int run_pending )
while
((
ctx
=
LDAP_STAILQ_FIRST
(
&
pool
->
ltp_pending_list
))
!=
NULL
)
{
LDAP_STAILQ_REMOVE_HEAD
(
&
pool
->
ltp_pending_list
,
ltc_next
.
q
);
free
(
ctx
);
LDAP_FREE
(
ctx
);
}
while
((
ctx
=
LDAP_SLIST_FIRST
(
&
pool
->
ltp_free_list
))
!=
NULL
)
{
LDAP_SLIST_REMOVE_HEAD
(
&
pool
->
ltp_free_list
,
ltc_next
.
l
);
free
(
ctx
);
LDAP_FREE
(
ctx
);
}
ldap_pvt_thread_cond_destroy
(
&
pool
->
ltp_cond
);
ldap_pvt_thread_mutex_destroy
(
&
pool
->
ltp_mutex
);
free
(
pool
);
LDAP_FREE
(
pool
);
return
(
0
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment