fix memleaks

avoid memleak if memory is full
fix "memleak" at the end of mbus_parse_hex
This commit is contained in:
Stefan Wahren
2013-05-04 19:17:27 +02:00
parent 3935b4013e
commit ee209023b8
3 changed files with 39 additions and 15 deletions

View File

@ -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;
}