Skip to content

Commit 3786ba5

Browse files
authored
Merge pull request #3 from cgrigis/NCB-239
[NCB-239] Fixed example to prevent memory leak
2 parents 8c9d44e + 562f0f2 commit 3786ba5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/mbus-test-1.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,7 @@
3838
xml_buff = mbus.frame_data_xml(reply_data)
3939

4040
print("xml_buff =", xml_buff)
41+
42+
mbus.frame_data_free(reply_data)
43+
44+
mbus.disconnect()

0 commit comments

Comments
 (0)