Skip to content

Commit

Permalink
WIP5 - fix some leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
DamMicSzm committed Jul 5, 2023
1 parent 8e3e03c commit 1256195
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/Linux/bluez/Helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ static BluezLEAdvertisement1 * BluezAdvertisingCreate(BluezEndpoint * apEndpoint
BLEManagerImpl::NotifyBLEPeripheralAdvConfiguredComplete(true, nullptr);

exit:
g_free(localName);
return adv;
}

Expand Down Expand Up @@ -814,6 +815,9 @@ static BluezGattCharacteristic1 * BluezCharacteristicCreate(BluezGattService1 *

bluez_object_skeleton_set_gatt_characteristic1(object, characteristic);
g_dbus_object_manager_server_export(aRoot, G_DBUS_OBJECT_SKELETON(object));

g_free(charPath);
g_free(servicePath);
g_object_unref(object);

return characteristic;
Expand Down

0 comments on commit 1256195

Please sign in to comment.