summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Aaron Burghardt2013-10-28 22:13:08 -0400
committerGravatar Martin Szulecki2013-11-12 14:55:51 +0100
commit7e8784718fb157e4518d9241492726ba3235ae04 (patch)
tree4283c054021d52ac3a84c45230a878464fb9a724 /src
parent3ccf0f44e88ccd1fe58a3be0fe8bb449218f2ae0 (diff)
downloadlibusbmuxd-7e8784718fb157e4518d9241492726ba3235ae04.tar.gz
libusbmuxd-7e8784718fb157e4518d9241492726ba3235ae04.tar.bz2
Fixed misuse of free() instead of plist_free().
Diffstat (limited to 'src')
-rw-r--r--src/libusbmuxd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c
index 73cf4e3..6cc48cf 100644
--- a/src/libusbmuxd.c
+++ b/src/libusbmuxd.c
@@ -167,7 +167,7 @@ static int receive_packet(int sfd, struct usbmuxd_header *header, void **payload
plist_t node = plist_dict_get_item(plist, "MessageType");
if (plist_get_node_type(node) != PLIST_STRING) {
DEBUG(1, "%s: Error getting message type from plist!\n", __func__);
- free(plist);
+ plist_free(plist);
return -EBADMSG;
}