diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index c8c3b1210..2c8197fb7 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -7055,6 +7055,8 @@ xlate_generic_encap_action(struct xlate_ctx *ctx, /* The actual encap datapath action will be generated at next commit. */ ctx->pending_encap = true; ctx->encap_data = encap_data; + } else { + ofpbuf_delete(encap_data); } }