Explorar o código

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 %!s(int64=14) %!d(string=hai) anos
pai
achega
db1f633c95
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);