summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Aaron Burghardt2015-07-31 12:28:20 -0400
committerGravatar Aaron Burghardt2015-07-31 12:41:56 -0400
commit90a38cc24794d2807c7e0a3d11f2eaaea76b8ebd (patch)
tree2e3cdb6e2595f23c2b84b6ba978275d8d340014a /src
parent423fb8c0e9750190d2b7f9c306df9efaa7080dbd (diff)
downloadusbmuxd-90a38cc24794d2807c7e0a3d11f2eaaea76b8ebd.tar.gz
usbmuxd-90a38cc24794d2807c7e0a3d11f2eaaea76b8ebd.tar.bz2
send_system_buid: fix leak of buid string returned by config_get_system_buid.
Diffstat (limited to 'src')
-rw-r--r--src/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.c b/src/client.c
index 4ec4025..e4154d2 100644
--- a/src/client.c
+++ b/src/client.c
@@ -373,6 +373,7 @@ static int send_system_buid(struct mux_client *client, uint32_t tag)
plist_t dict = plist_new_dict();
plist_dict_set_item(dict, "BUID", plist_new_string(buid));
+ free(buid);
res = send_plist_pkt(client, tag, dict);
plist_free(dict);
return res;