summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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;
}