From c43099f98c0540489784361ce8aca09aaa84fb00 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Mon, 17 Oct 2022 07:33:17 +0100 Subject: [PATCH] Fix Coverity Scan 1499822 --- test/unit/property_user_read.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/property_user_read.c b/test/unit/property_user_read.c index 0f3cc479..5aba9630 100644 --- a/test/unit/property_user_read.c +++ b/test/unit/property_user_read.c @@ -469,6 +469,8 @@ static void missing_read_helper(mosquitto_property *proplist) /* MISSING */ prop = mosquitto_property_read_binary(proplist, MQTT_PROP_CORRELATION_DATA, (void **)&value, &length, false); CU_ASSERT_PTR_NULL(prop); + CU_ASSERT_PTR_NULL(value); + free(value); /* NOT MISSING */ prop = mosquitto_property_read_byte(proplist, MQTT_PROP_REQUEST_PROBLEM_INFORMATION, &byte_value, false);