Skip to content

Commit 33369fb

Browse files
committed
Free host address in CLI
1 parent 8cc40f7 commit 33369fb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/utils/psmovecli.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ class ListHandler : public psmoveapi::Handler {
157157
{
158158
char *host_address = psmove_port_get_host_bluetooth_address();
159159
PSMOVE_INFO("Host address: %s", host_address ? host_address : "unknown");
160+
psmove_free_mem(host_address);
160161
}
161162

162163
virtual void connect(Controller *controller) {

0 commit comments

Comments
 (0)