Eliminated dial_features_destroy() since it is equivalent to ast_free_ptr()
authorRichard Mudgett <rmudgett@digium.com>
Wed, 10 Apr 2013 23:08:02 +0000 (23:08 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 10 Apr 2013 23:08:02 +0000 (23:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@385278 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/features.c

index 1130ba7..755007e 100644 (file)
@@ -879,17 +879,9 @@ static void *dial_features_duplicate(void *data)
        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,
 };