diff --git a/include/asterisk/linkedlists.h b/include/asterisk/linkedlists.h index ed1d48340d..5f8a57b167 100644 --- a/include/asterisk/linkedlists.h +++ b/include/asterisk/linkedlists.h @@ -439,6 +439,7 @@ struct { \ if ((head)->last == (elm)) \ (head)->last = curelm; \ } \ + (elm)->field.next = NULL; \ } while (0) #endif /* _ASTERISK_LINKEDLISTS_H */