aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_speech.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_speech.c')
-rw-r--r--res/res_speech.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_speech.c b/res/res_speech.c
index e848b06ca..9047ad254 100644
--- a/res/res_speech.c
+++ b/res/res_speech.c
@@ -113,7 +113,7 @@ int ast_speech_results_free(struct ast_speech_result *result)
current_result->grammar = NULL;
}
/* Move on and then free ourselves */
- current_result = current_result->next;
+ current_result = AST_LIST_NEXT(current_result, list);
ast_free(prev_result);
prev_result = NULL;
}