Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Bugzilla
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
openldap
OpenLDAP
Commits
9e82379b
Commit
9e82379b
authored
25 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
More CSRI malloc debugging support and destroy sockbuf fix.
Test008 now runs without leak.
parent
e290eacb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
libraries/liblber/lber-int.h
+17
-0
17 additions, 0 deletions
libraries/liblber/lber-int.h
libraries/libldif/line64.c
+7
-0
7 additions, 0 deletions
libraries/libldif/line64.c
servers/slapd/connection.c
+1
-0
1 addition, 0 deletions
servers/slapd/connection.c
tests/Makefile.in
+1
-1
1 addition, 1 deletion
tests/Makefile.in
with
26 additions
and
1 deletion
libraries/liblber/lber-int.h
+
17
−
0
View file @
9e82379b
...
...
@@ -211,6 +211,22 @@ ber_log_sos_dump LDAP_P((
/* simple macros to realloc for now */
extern
BerMemoryFunctions
*
ber_int_memory_fns
;
#ifdef CSRIMALLOC
#define LBER_INT_MALLOC malloc
#define LBER_INT_CALLOC calloc
#define LBER_INT_REALLOC realloc
#define LBER_INT_FREE free
#define LBER_INT_VFREE ber_memvfree
#define LBER_INT_STRDUP strdup
#define LBER_MALLOC malloc
#define LBER_CALLOC calloc
#define LBER_REALLOC realloc
#define LBER_FREE free
#define LBER_VFREE ber_memvfree
#define LBER_STRDUP strdup
#else
#define LBER_INT_MALLOC(s) ber_memalloc((s))
#define LBER_INT_CALLOC(n,s) ber_memcalloc((n),(s))
#define LBER_INT_REALLOC(p,s) ber_memrealloc((p),(s))
...
...
@@ -224,6 +240,7 @@ extern BerMemoryFunctions* ber_int_memory_fns;
#define LBER_FREE(p) ber_memfree((p))
#define LBER_VFREE(v) ber_memvfree((void**)(v))
#define LBER_STRDUP(s) ber_strdup((s))
#endif
/* sockbuf.c */
...
...
This diff is collapsed.
Click to expand it.
libraries/libldif/line64.c
+
7
−
0
View file @
9e82379b
...
...
@@ -25,6 +25,13 @@ int ldif_debug = 0;
#define RIGHT4 0x0f
#define CONTINUED_LINE_MARKER '\001'
#ifdef CSRIMALLOC
#define ber_memalloc malloc
#define ber_memcalloc calloc
#define ber_memrealloc realloc
#define ber_strdup strdup
#endif
static
const
char
nib2b64
[
0x40
]
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
;
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/connection.c
+
1
−
0
View file @
9e82379b
...
...
@@ -115,6 +115,7 @@ int connections_destroy(void)
for
(
i
=
0
;
i
<
dtblsize
;
i
++
)
{
if
(
connections
[
i
].
c_struct_state
!=
SLAP_C_UNINITIALIZED
)
{
ber_sockbuf_free
(
connections
[
i
].
c_sb
);
ldap_pvt_thread_mutex_destroy
(
&
connections
[
i
].
c_mutex
);
ldap_pvt_thread_mutex_destroy
(
&
connections
[
i
].
c_write_mutex
);
ldap_pvt_thread_cond_destroy
(
&
connections
[
i
].
c_write_cv
);
...
...
This diff is collapsed.
Click to expand it.
tests/Makefile.in
+
1
−
1
View file @
9e82379b
...
...
@@ -53,7 +53,7 @@ test-nis-schema-bdb2:
fi
clean-local
:
FORCE
-$(
RM
)
test-db/[!C]
*
test-repl/[!C]
*
*
gmon
*
core
-$(
RM
)
test-db/[!C]
*
test-repl/[!C]
*
*
leak
*
gmon
*
core
veryclean-local
:
FORCE
@
-
$(
RM
)
data
...
...
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