Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/servers/plugins/retrocl
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25637/ldap/servers/plugins/retrocl
Modified Files:
retrocl_po.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: retrocl_po.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/retrocl/retrocl_po.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- retrocl_po.c 10 Nov 2006 23:45:18 -0000 1.6
+++ retrocl_po.c 15 Oct 2008 06:29:59 -0000 1.7
@@ -133,7 +133,7 @@
addlenstr( l, buf );
- free( buf );
+ slapi_ch_free_string( &buf );
}
addlenstr( l, "-\n" );
}
@@ -219,7 +219,7 @@
val.bv_val = format_genTime (curtime);
val.bv_len = strlen( val.bv_val );
slapi_entry_add_values( e, attr_changetime, vals );
- free( val.bv_val );
+ slapi_ch_free( (void **)&val.bv_val );
/*
* Finish constructing the entry. How to do it depends on the type
@@ -329,7 +329,7 @@
val.bv_val = p;
val.bv_len = len - ( p - estr ); /* length + terminating \0 */
slapi_entry_add_values( e, attr_changes, vals );
- free( estr );
+ slapi_ch_free_string( &estr );
return 0;
}