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
openldap
OpenLDAP
Commits
76243a27
Commit
76243a27
authored
Nov 06, 2001
by
Stig Venaas
Browse files
Fixed more memory leaks
parent
33ace561
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/schema_init.c
View file @
76243a27
...
...
@@ -331,13 +331,10 @@ nameUIDValidate(
break
;
}
}
if
(
dn
->
bv_val
[
i
]
!=
'\''
)
{
return
LDAP_INVALID_SYNTAX
;
}
if
(
dn
->
bv_val
[
i
-
1
]
!=
'B'
)
{
return
LDAP_INVALID_SYNTAX
;
}
if
(
dn
->
bv_val
[
i
-
2
]
!=
'#'
)
{
if
(
dn
->
bv_val
[
i
]
!=
'\''
||
dn
->
bv_val
[
i
-
1
]
!=
'B'
||
dn
->
bv_val
[
i
-
2
]
!=
'#'
)
{
ber_bvfree
(
dn
);
return
LDAP_INVALID_SYNTAX
;
}
...
...
@@ -1153,6 +1150,11 @@ retry:
if
(
idx
>=
left
.
bv_len
)
{
/* this shouldn't happen */
free
(
nav
);
ch_free
(
sub
->
sa_final
);
ber_bvecfree
(
sub
->
sa_any
);
ch_free
(
sub
->
sa_initial
);
ch_free
(
sub
);
return
LDAP_OTHER
;
}
...
...
@@ -1391,6 +1393,7 @@ int caseExactIgnoreSubstringsIndexer(
if
(
nkeys
==
0
)
{
/* no keys to generate */
*
keysp
=
NULL
;
ber_bvecfree
(
nvalues
);
return
LDAP_SUCCESS
;
}
...
...
@@ -3486,7 +3489,8 @@ asn1_integer2str(ASN1_INTEGER *a)
* Way too large, we need to leave
* room for sign if negative
*/
return
NULL
;
free
(
copy
);
return
NULL
;
}
*--
p
=
digit
[
carry
];
if
(
copy
[
base
]
==
0
)
...
...
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