Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
659dafb7
Commit
659dafb7
authored
Apr 16, 2010
by
Quanah Gibson-Mount
Browse files
use slab allocation
parent
2396cf7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-ldap/search.c
View file @
659dafb7
...
...
@@ -195,7 +195,8 @@ ldap_back_search(
for
(
i
=
0
;
!
BER_BVISNULL
(
&
op
->
ors_attrs
[
i
].
an_name
);
i
++
)
/* just count attrs */
;
attrs
=
ch_malloc
(
(
i
+
1
)
*
sizeof
(
char
*
)
);
attrs
=
op
->
o_tmpalloc
(
(
i
+
1
)
*
sizeof
(
char
*
),
op
->
o_tmpmemctx
);
if
(
attrs
==
NULL
)
{
rs
->
sr_err
=
LDAP_NO_MEMORY
;
rc
=
-
1
;
...
...
@@ -609,7 +610,7 @@ finish:;
}
if
(
attrs
)
{
ch_
free
(
attrs
);
op
->
o_tmp
free
(
attrs
,
op
->
o_tmpmemctx
);
}
if
(
lc
!=
NULL
)
{
...
...
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