summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--network/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/network/connection.c b/network/connection.c
index a25beb28..4bcc5b13 100644
--- a/network/connection.c
+++ b/network/connection.c
@@ -497,7 +497,7 @@ static struct network_peer *create_peer(const char *path, bdaddr_t *src,
peer, path_unregister) == FALSE) {
error("D-Bus failed to register %s interface",
NETWORK_PEER_INTERFACE);
- g_free(peer);
+ peer_free(peer);
return NULL;
}