[Fedora-directory-commits] ldapserver/ldap/servers/plugins/roles roles_cache.c, 1.7, 1.8 roles_plugin.c, 1.9, 1.10
Noriko Hosoi
nhosoi at fedoraproject.org
Wed Oct 15 06:30:03 UTC 2008
Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/servers/plugins/roles
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25637/ldap/servers/plugins/roles
Modified Files:
roles_cache.c roles_plugin.c
Log Message:
Resolves: #466702
Summary: Memory usage research: checking in the experimental code
See also: http://directory.fedoraproject.org/wiki/Memory_Usage_Research
Index: roles_cache.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/roles/roles_cache.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- roles_cache.c 12 Oct 2007 18:03:43 -0000 1.7
+++ roles_cache.c 15 Oct 2008 06:30:00 -0000 1.8
@@ -272,7 +272,7 @@
{
slapi_log_error( SLAPI_LOG_FATAL, ROLES_PLUGIN_SUBSYSTEM,
"roles_cache_init: slapi_vattrspi_regattr failed\n");
- free(vattr_handle);
+ slapi_ch_free((void **)&vattr_handle);
PR_DestroyRWLock(global_lock);
global_lock = NULL;
return(-1);
Index: roles_plugin.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/roles/roles_plugin.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- roles_plugin.c 8 Oct 2008 17:29:03 -0000 1.9
+++ roles_plugin.c 15 Oct 2008 06:30:01 -0000 1.10
@@ -246,7 +246,7 @@
if (rc == 0)
{
*free_flags = SLAPI_VIRTUALATTRS_RETURNED_COPIES;
- *actual_type_name = strdup(NSROLEATTR);
+ *actual_type_name = slapi_ch_strdup(NSROLEATTR);
if (type_name_disposition)
{
More information about the Fedora-directory-commits
mailing list