[ovs-dev] [PATCH v2 3/3] ovn-northd: Fix memory leak in free_chassis_queueid().

Numan Siddique nusiddiq at redhat.com
Wed Oct 31 17:30:15 UTC 2018


On Wed, Oct 31, 2018 at 3:36 AM Ben Pfaff <blp at ovn.org> wrote:

> Found by inspection.
>
> Signed-off-by: Ben Pfaff <blp at ovn.org>
>

Acked-by: Numan Siddique <nusiddiq at redhat.com>


> ---
>  ovn/northd/ovn-northd.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/ovn/northd/ovn-northd.c b/ovn/northd/ovn-northd.c
> index 6cb0b6cc410a..e42ceea99264 100644
> --- a/ovn/northd/ovn-northd.c
> +++ b/ovn/northd/ovn-northd.c
> @@ -393,6 +393,7 @@ free_chassis_queueid(struct hmap *set, struct
> sbrec_chassis *chassis,
>          if (uuid_equals(chassis_uuid, &node->chassis_uuid)
>              && node->queue_id == queue_id) {
>              hmap_remove(set, &node->key_node);
> +            free(node);
>              break;
>          }
>      }
> --
> 2.16.1
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>


More information about the dev mailing list