diff --git a/pmc_common.c b/pmc_common.c index 0246fea..4a160f6 100644 --- a/pmc_common.c +++ b/pmc_common.c @@ -506,6 +506,7 @@ int pmc_send_get_action(struct pmc *pmc, int id) extra = tlv_extra_alloc(); if (!extra) { pr_err("failed to allocate TLV descriptor"); + msg_put(msg); return -ENOMEM; } extra->tlv = (struct TLV *) msg->management.suffix;