Преглед изворни кода

Bug 644784 - Memory leak in "testbind.c" plugin

https://bugzilla.redhat.com/show_bug.cgi?id=644784
Resolves: bug 644784
Bug Description: Memory leak in "testbind.c" plugin
Reviewed by: rmeggins (submitted by [email protected])
Branch: master
Fix Description: Free the entry
Platforms tested: RHEL6 x86_64
Flag Day: no
Doc impact: no
Rich Megginson пре 14 година
родитељ
комит
df575d3d65
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      ldap/servers/slapd/test-plugins/testbind.c

+ 1 - 0
ldap/servers/slapd/test-plugins/testbind.c

@@ -216,6 +216,7 @@ test_bind( Slapi_PBlock *pb )
 		break;
 		break;
 	}
 	}
 
 
+	slapi_entry_free( e );
 	slapi_send_ldap_result( pb, rc, NULL, NULL, 0, NULL );
 	slapi_send_ldap_result( pb, rc, NULL, NULL, 0, NULL );
 	return( 1 );
 	return( 1 );
 }
 }