[ovs-dev] [PATCH] ovsdb-server: Fix memory leak reported by Valgind.

William Tu u9012063 at gmail.com
Sat May 14 05:19:10 UTC 2016


Hi Ryan,

Thanks for the comments.
I think free() in libc internally will check if remotes_error is NULL or
not.

Regards,
William

> >      }
> >
> > +    free(remotes_error);
>
> Shouldn't this be
>
>     if (remotes_error) {
>         free(remotes_error);
>     }
>
> Ryan Moats
>



More information about the dev mailing list