diff options
Diffstat (limited to 'lib/ofpbuf.c')
-rw-r--r-- | lib/ofpbuf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ofpbuf.c b/lib/ofpbuf.c index 7510edb9b..c27c55204 100644 --- a/lib/ofpbuf.c +++ b/lib/ofpbuf.c @@ -477,10 +477,9 @@ ofpbuf_to_string(const struct ofpbuf *b, size_t maxbytes) void ofpbuf_list_delete(struct ovs_list *list) { - struct ofpbuf *b, *next; + struct ofpbuf *b; - LIST_FOR_EACH_SAFE (b, next, list_node, list) { - list_remove(&b->list_node); + LIST_FOR_EACH_POP (b, list_node, list) { ofpbuf_delete(b); } } |