On Thu, Mar 21, 2019 at 05:12:03PM +0100, Miroslav Lichvar wrote:
> Signed-off-by: Miroslav Lichvar <[email protected]>
> ---
>  pmc_common.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/pmc_common.c b/pmc_common.c
> index 4a160f6..4d48e3a 100644
> --- a/pmc_common.c
> +++ b/pmc_common.c
> @@ -546,6 +546,7 @@ int pmc_send_set_action(struct pmc *pmc, int id, void 
> *data, int datasize)
>       }
>       extra = msg_tlv_append(msg, sizeof(*mgt) + datasize);
>       if (!extra) {
> +             msg_put(msg);
>               return -ENOMEM;
>       }
>       mgt = (struct management_tlv *) extra->tlv;
> -- 
> 2.17.2

Applied.

Thanks,
Richard


_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to