If netlink transaction returns malformed or otherwise not parsable
reply, it should be freed, as callers will not do that on failure.
Found while reading the code.
Fixes: 80738e5f93a7 ("dpif-netlink: Add meter support.")
Acked-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
VLOG_DBG_RL(&rl,
"Kernel module response to meter tranaction is invalid");
+ ofpbuf_delete(*replyp);
return EINVAL;
}
return 0;