mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 06:59:54 -05:00
Plug memory leak
This commit is contained in:
parent
9490776d7b
commit
66d38ab10a
1 changed files with 5 additions and 0 deletions
|
|
@ -558,6 +558,7 @@ cleanup:
|
|||
if (ndn.bv_val) slapi_ch_free( (void **)&ndn.bv_val );
|
||||
|
||||
if ( pConn != NULL ) {
|
||||
if ( pConn->c_sb != NULL ) ber_sockbuf_free( pConn->c_sb );
|
||||
if ( pConn->c_dn.bv_val ) slapi_ch_free( (void **)&pConn->c_dn.bv_val );
|
||||
if ( op->o_dn.bv_val ) slapi_ch_free( (void **)&op->o_dn.bv_val );
|
||||
if ( op ) slapi_ch_free( (void **)&op );
|
||||
|
|
@ -641,6 +642,7 @@ cleanup:
|
|||
}
|
||||
|
||||
if ( pConn != NULL ) {
|
||||
if ( pConn->c_sb != NULL ) ber_sockbuf_free( pConn->c_sb );
|
||||
if ( pConn->c_dn.bv_val ) slapi_ch_free( (void **)&pConn->c_dn.bv_val );
|
||||
if ( op ) {
|
||||
if ( op->o_ndn.bv_val ) {
|
||||
|
|
@ -856,6 +858,7 @@ cleanup:
|
|||
if ( nnewrdn.bv_val ) ch_free( newrdn.bv_val );
|
||||
|
||||
if ( pConn != NULL ) {
|
||||
if ( pConn->c_sb != NULL ) ber_sockbuf_free( pConn->c_sb );
|
||||
if ( pConn->c_dn.bv_val ) slapi_ch_free( (void **)&pConn->c_dn.bv_val );
|
||||
if ( op ) {
|
||||
if ( op->o_dn.bv_val ) slapi_ch_free( (void **)&op->o_dn.bv_val );
|
||||
|
|
@ -1069,6 +1072,7 @@ cleanup:
|
|||
if ( modlist != NULL ) slap_mods_free( modlist );
|
||||
|
||||
if ( pConn != NULL ) {
|
||||
if ( pConn->c_sb != NULL ) ber_sockbuf_free( pConn->c_sb );
|
||||
if ( pConn->c_dn.bv_val ) slapi_ch_free( (void **)&pConn->c_dn.bv_val );
|
||||
if ( op ) {
|
||||
if ( op->o_dn.bv_val ) slapi_ch_free( (void **)&op->o_dn.bv_val );
|
||||
|
|
@ -1247,6 +1251,7 @@ cleanup:
|
|||
if ( an != NULL ) free( an );
|
||||
|
||||
if ( c != NULL ) {
|
||||
if ( c->c_sb != NULL ) ber_sockbuf_free( c->c_sb );
|
||||
if ( c->c_dn.bv_val ) slapi_ch_free( (void **)&c->c_dn.bv_val );
|
||||
if ( op ) {
|
||||
if ( op->o_ndn.bv_val ) slapi_ch_free( (void **)&op->o_ndn.bv_val );
|
||||
|
|
|
|||
Loading…
Reference in a new issue