diff options
author | Aaron Burghardt | 2013-10-28 22:13:08 -0400 |
---|---|---|
committer | Martin Szulecki | 2013-11-12 14:55:51 +0100 |
commit | 7e8784718fb157e4518d9241492726ba3235ae04 (patch) | |
tree | 4283c054021d52ac3a84c45230a878464fb9a724 | |
parent | 3ccf0f44e88ccd1fe58a3be0fe8bb449218f2ae0 (diff) | |
download | libusbmuxd-7e8784718fb157e4518d9241492726ba3235ae04.tar.gz libusbmuxd-7e8784718fb157e4518d9241492726ba3235ae04.tar.bz2 |
Fixed misuse of free() instead of plist_free().
-rw-r--r-- | src/libusbmuxd.c | 2 |
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; } |