diff mbox series

[ovs-dev,1/1] Fixed memory leak in ovn-controller while handling port binding changes.

Message ID 1563877928-19546-1-git-send-email-damjan.skvarc@gmail.com
State Accepted
Headers show
Series [ovs-dev,1/1] Fixed memory leak in ovn-controller while handling port binding changes. | expand

Commit Message

Damijan Skvarc July 23, 2019, 10:32 a.m. UTC
Signed-off-by: Damijan Skvarc <damjan.skvarc@gmail.com>
---
 ovn/controller/physical.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dumitru Ceara July 23, 2019, 11:16 a.m. UTC | #1
On Tue, Jul 23, 2019 at 12:33 PM Damijan Skvarc <damjan.skvarc@gmail.com> wrote:
>
> Signed-off-by: Damijan Skvarc <damjan.skvarc@gmail.com>

Looks good to me. Thanks!
Acked-by: Dumitru Ceara <dceara@redhat.com>

> ---
>  ovn/controller/physical.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ovn/controller/physical.c b/ovn/controller/physical.c
> index 316d373..7ad3e6f 100644
> --- a/ovn/controller/physical.c
> +++ b/ovn/controller/physical.c
> @@ -1091,7 +1091,7 @@ void physical_handle_port_binding_changes(
>                                    flow_table, &ofpacts);
>          }
>      }
> -
> +    ofpbuf_uninit(&ofpacts);
>  }
>
>  void
> --
> 2.7.4
>
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Numan Siddique Aug. 6, 2019, 10:20 a.m. UTC | #2
On Tue, Jul 23, 2019 at 4:47 PM Dumitru Ceara <dceara@redhat.com> wrote:

> On Tue, Jul 23, 2019 at 12:33 PM Damijan Skvarc <damjan.skvarc@gmail.com>
> wrote:
> >
> > Signed-off-by: Damijan Skvarc <damjan.skvarc@gmail.com>
>
> Looks good to me. Thanks!
> Acked-by: Dumitru Ceara <dceara@redhat.com>
>

Thank for the fix. I pushed this patch to ovn master.

We do need to backport this fix to branch 2.12.

Thanks
Numan


>
> > ---
> >  ovn/controller/physical.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/ovn/controller/physical.c b/ovn/controller/physical.c
> > index 316d373..7ad3e6f 100644
> > --- a/ovn/controller/physical.c
> > +++ b/ovn/controller/physical.c
> > @@ -1091,7 +1091,7 @@ void physical_handle_port_binding_changes(
> >                                    flow_table, &ofpacts);
> >          }
> >      }
> > -
> > +    ofpbuf_uninit(&ofpacts);
> >  }
> >
> >  void
> > --
> > 2.7.4
> >
> > _______________________________________________
> > dev mailing list
> > dev@openvswitch.org
> > https://mail.openvswitch.org/mailman/listinfo/ovs-dev
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>
Justin Pettit Aug. 9, 2019, 5:30 p.m. UTC | #3
> On Aug 6, 2019, at 3:20 AM, Numan Siddique <nusiddiq@redhat.com> wrote:
> 
> On Tue, Jul 23, 2019 at 4:47 PM Dumitru Ceara <dceara@redhat.com> wrote:
> 
>> On Tue, Jul 23, 2019 at 12:33 PM Damijan Skvarc <damjan.skvarc@gmail.com>
>> wrote:
>>> 
>>> Signed-off-by: Damijan Skvarc <damjan.skvarc@gmail.com>
>> 
>> Looks good to me. Thanks!
>> Acked-by: Dumitru Ceara <dceara@redhat.com>
>> 
> 
> Thank for the fix. I pushed this patch to ovn master.
> 
> We do need to backport this fix to branch 2.12.

Thanks.  I backported it to branch-2.12.

--Justin
diff mbox series

Patch

diff --git a/ovn/controller/physical.c b/ovn/controller/physical.c
index 316d373..7ad3e6f 100644
--- a/ovn/controller/physical.c
+++ b/ovn/controller/physical.c
@@ -1091,7 +1091,7 @@  void physical_handle_port_binding_changes(
                                   flow_table, &ofpacts);
         }
     }
-
+    ofpbuf_uninit(&ofpacts);
 }
 
 void