Eliminated dial_features_destroy() since it is equivalent to ast_free_ptr()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@385278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
eb2d144195
commit
3afeac5e3b
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue