From 7c478bd95313f5f23a4c958a745db2134aa03244 Mon Sep 17 00:00:00 2001 From: "stevel@tonic-gate" Date: Tue, 14 Jun 2005 00:00:00 -0700 Subject: OpenSolaris Launch --- usr/src/lib/libldap4/common/utils.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 usr/src/lib/libldap4/common/utils.c (limited to 'usr/src/lib/libldap4/common/utils.c') diff --git a/usr/src/lib/libldap4/common/utils.c b/usr/src/lib/libldap4/common/utils.c new file mode 100644 index 0000000000..e3652ac275 --- /dev/null +++ b/usr/src/lib/libldap4/common/utils.c @@ -0,0 +1,27 @@ +/* + * + * Copyright %G% Sun Microsystems, Inc. All Rights Reserved + * + * + * Comments: + * + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + +#include +#include +#include +#include + +void free_strarray( char **sap ) +{ + int i; + + if ( sap != NULL ) { + for ( i = 0; sap[ i ] != NULL; ++i ) { + free( sap[ i ] ); + } + free( (char *)sap ); + } +} -- cgit v1.2.3