fix memleaks
avoid memleak if memory is full fix "memleak" at the end of mbus_parse_hex
This commit is contained in:
@ -80,7 +80,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
printf("%s", xml_result);
|
||||
free(xml_result);
|
||||
|
||||
mbus_data_record_free(frame_data.data_var.record);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user