[asterisk-commits] rmudgett: trunk r385278 - /trunk/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 10 18:08:06 CDT 2013


Author: rmudgett
Date: Wed Apr 10 18:08:02 2013
New Revision: 385278

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=385278
Log:
Eliminated dial_features_destroy() since it is equivalent to ast_free_ptr()

Modified:
    trunk/main/features.c

Modified: trunk/main/features.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/features.c?view=diff&rev=385278&r1=385277&r2=385278
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Wed Apr 10 18:08:02 2013
@@ -879,17 +879,9 @@
 	return df_copy;
 }
 
-static void dial_features_destroy(void *data)
-{
-	struct ast_dial_features *df = data;
-	if (df) {
-		ast_free(df);
-	}
-}
-
 static const struct ast_datastore_info dial_features_info = {
 	.type = "dial-features",
-	.destroy = dial_features_destroy,
+	.destroy = ast_free_ptr,
 	.duplicate = dial_features_duplicate,
 };
 




More information about the asterisk-commits mailing list