diff options
| author | 2015-07-31 12:28:20 -0400 | |
|---|---|---|
| committer | 2015-07-31 12:41:56 -0400 | |
| commit | 90a38cc24794d2807c7e0a3d11f2eaaea76b8ebd (patch) | |
| tree | 2e3cdb6e2595f23c2b84b6ba978275d8d340014a /src/client.c | |
| parent | 423fb8c0e9750190d2b7f9c306df9efaa7080dbd (diff) | |
| download | usbmuxd-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/client.c')
| -rw-r--r-- | src/client.c | 1 |
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) | |||
| 373 | 373 | ||
| 374 | plist_t dict = plist_new_dict(); | 374 | plist_t dict = plist_new_dict(); |
| 375 | plist_dict_set_item(dict, "BUID", plist_new_string(buid)); | 375 | plist_dict_set_item(dict, "BUID", plist_new_string(buid)); |
| 376 | free(buid); | ||
| 376 | res = send_plist_pkt(client, tag, dict); | 377 | res = send_plist_pkt(client, tag, dict); |
| 377 | plist_free(dict); | 378 | plist_free(dict); |
| 378 | return res; | 379 | return res; |
