From 32b06d1cddb198609a5435ae0724bbf03ed996b7 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 21:26:37 +0000 Subject: Apply patch linuxptp-msgput.patch patch_name: linuxptp-msgput.patch present_in_specfile: true --- 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;