diff --git a/mbus/mbus-protocol-aux.c b/mbus/mbus-protocol-aux.c index 5ddba9fb..82219b17 100755 --- a/mbus/mbus-protocol-aux.c +++ b/mbus/mbus-protocol-aux.c @@ -1455,6 +1455,8 @@ mbus_data_variable_xml_normalized(mbus_data_variable *data) } else { + free(buff); + return NULL; } len += snprintf(&buff[len], buff_size - len, " \n\n");