Quellcode durchsuchen

Bug 697027 - 5 - minor memory leaks found by Valgrind + TET

https://bugzilla.redhat.com/show_bug.cgi?id=697027
[Case 5]
Description: Adding slapi_ch_free_string to free result_matched
to operation_free.
Noriko Hosoi vor 14 Jahren
Ursprung
Commit
db1f633c95
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      ldap/servers/slapd/operation.c

+ 1 - 0
ldap/servers/slapd/operation.c

@@ -219,6 +219,7 @@ operation_free( Slapi_Operation **op, Connection *conn )
 		if ( NULL != (*op)->o_results.result_controls ) {
 			ldap_controls_free( (*op)->o_results.result_controls );
 		}
+		slapi_ch_free_string(&(*op)->o_results.result_matched);
 		if(operation_is_flag_set(*op, OP_FLAG_INTERNAL))
 		{
 			slapi_ch_free((void**)op);