Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
Christopher Ng
OpenLDAP
Commits
2f634549
Commit
2f634549
authored
19 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
don't leak on exit
parent
31b5ff36
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
servers/slapd/back-monitor/init.c
+8
-0
8 additions, 0 deletions
servers/slapd/back-monitor/init.c
servers/slapd/back-monitor/rww.c
+22
-3
22 additions, 3 deletions
servers/slapd/back-monitor/rww.c
with
30 additions
and
3 deletions
servers/slapd/back-monitor/init.c
+
8
−
0
View file @
2f634549
...
...
@@ -1855,6 +1855,14 @@ monitor_back_db_destroy(
if
(
!
BER_BVISNULL
(
&
monitor_subsys
[
i
]
->
mss_rdn
)
)
{
ch_free
(
monitor_subsys
[
i
]
->
mss_rdn
.
bv_val
);
}
if
(
!
BER_BVISNULL
(
&
monitor_subsys
[
i
]
->
mss_dn
)
)
{
ch_free
(
monitor_subsys
[
i
]
->
mss_dn
.
bv_val
);
}
if
(
!
BER_BVISNULL
(
&
monitor_subsys
[
i
]
->
mss_ndn
)
)
{
ch_free
(
monitor_subsys
[
i
]
->
mss_ndn
.
bv_val
);
}
}
ch_free
(
monitor_subsys
);
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-monitor/rww.c
+
22
−
3
View file @
2f634549
...
...
@@ -28,6 +28,11 @@
#include
"lutil.h"
#include
"back-monitor.h"
static
int
monitor_subsys_rww_destroy
(
BackendDB
*
be
,
monitor_subsys_t
*
ms
);
static
int
monitor_subsys_rww_update
(
Operation
*
op
,
...
...
@@ -41,7 +46,7 @@ enum {
MONITOR_RWW_LAST
};
struct
monitor_rww_t
{
static
struct
monitor_rww_t
{
struct
berval
rdn
;
struct
berval
nrdn
;
}
monitor_rww
[]
=
{
...
...
@@ -53,8 +58,7 @@ struct monitor_rww_t {
int
monitor_subsys_rww_init
(
BackendDB
*
be
,
monitor_subsys_t
*
ms
)
monitor_subsys_t
*
ms
)
{
monitor_info_t
*
mi
;
...
...
@@ -64,6 +68,7 @@ monitor_subsys_rww_init(
assert
(
be
!=
NULL
);
ms
->
mss_destroy
=
monitor_subsys_rww_destroy
;
ms
->
mss_update
=
monitor_subsys_rww_update
;
mi
=
(
monitor_info_t
*
)
be
->
be_private
;
...
...
@@ -147,6 +152,20 @@ monitor_subsys_rww_init(
return
(
0
);
}
static
int
monitor_subsys_rww_destroy
(
BackendDB
*
be
,
monitor_subsys_t
*
ms
)
{
int
i
;
for
(
i
=
0
;
i
<
MONITOR_RWW_LAST
;
i
++
)
{
ber_memfree_x
(
monitor_rww
[
i
].
nrdn
.
bv_val
,
NULL
);
}
return
0
;
}
static
int
monitor_subsys_rww_update
(
Operation
*
op
,
...
...
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