mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
plug leaks...
This commit is contained in:
parent
e9169c2b46
commit
6930e84f81
@ -648,6 +648,11 @@ backsql_get_attr_vals( void *v_at, void *v_bsi )
|
|||||||
Debug( LDAP_DEBUG_TRACE, "backsql_get_attr_vals(): "
|
Debug( LDAP_DEBUG_TRACE, "backsql_get_attr_vals(): "
|
||||||
"error preparing query: %s\n", at->bam_query, 0, 0 );
|
"error preparing query: %s\n", at->bam_query, 0, 0 );
|
||||||
backsql_PrintErrors( bi->sql_db_env, bsi->bsi_dbh, sth, rc );
|
backsql_PrintErrors( bi->sql_db_env, bsi->bsi_dbh, sth, rc );
|
||||||
|
#ifdef BACKSQL_COUNTQUERY
|
||||||
|
if ( append ) {
|
||||||
|
attr_free( attr );
|
||||||
|
}
|
||||||
|
#endif /* BACKSQL_COUNTQUERY */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -656,6 +661,11 @@ backsql_get_attr_vals( void *v_at, void *v_bsi )
|
|||||||
if ( rc != SQL_SUCCESS ) {
|
if ( rc != SQL_SUCCESS ) {
|
||||||
Debug( LDAP_DEBUG_TRACE, "backsql_get_attr_vals(): "
|
Debug( LDAP_DEBUG_TRACE, "backsql_get_attr_vals(): "
|
||||||
"error binding key value parameter\n", 0, 0, 0 );
|
"error binding key value parameter\n", 0, 0, 0 );
|
||||||
|
#ifdef BACKSQL_COUNTQUERY
|
||||||
|
if ( append ) {
|
||||||
|
attr_free( attr );
|
||||||
|
}
|
||||||
|
#endif /* BACKSQL_COUNTQUERY */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -678,6 +688,11 @@ backsql_get_attr_vals( void *v_at, void *v_bsi )
|
|||||||
at->bam_query, 0, 0 );
|
at->bam_query, 0, 0 );
|
||||||
backsql_PrintErrors( bi->sql_db_env, bsi->bsi_dbh, sth, rc );
|
backsql_PrintErrors( bi->sql_db_env, bsi->bsi_dbh, sth, rc );
|
||||||
SQLFreeStmt( sth, SQL_DROP );
|
SQLFreeStmt( sth, SQL_DROP );
|
||||||
|
#ifdef BACKSQL_COUNTQUERY
|
||||||
|
if ( append ) {
|
||||||
|
attr_free( attr );
|
||||||
|
}
|
||||||
|
#endif /* BACKSQL_COUNTQUERY */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user