diff options
Diffstat (limited to 'src/bplist.c')
| -rw-r--r-- | src/bplist.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/bplist.c b/src/bplist.c index d03dc2b..43354be 100644 --- a/src/bplist.c +++ b/src/bplist.c | |||
| @@ -740,12 +740,6 @@ static void serialize_plist(node_t* node, void* data) | |||
| 740 | return; | 740 | return; |
| 741 | } | 741 | } |
| 742 | 742 | ||
| 743 | static int free_index(void* key, void* value, void* user_data) | ||
| 744 | { | ||
| 745 | free((uint64_t *) value); | ||
| 746 | return TRUE; | ||
| 747 | } | ||
| 748 | |||
| 749 | #define Log2(x) (x == 8 ? 3 : (x == 4 ? 2 : (x == 2 ? 1 : 0))) | 743 | #define Log2(x) (x == 8 ? 3 : (x == 4 ? 2 : (x == 2 ? 1 : 0))) |
| 750 | 744 | ||
| 751 | static void write_int(bytearray_t * bplist, uint64_t val) | 745 | static void write_int(bytearray_t * bplist, uint64_t val) |
| @@ -998,7 +992,6 @@ void plist_to_bin(plist_t plist, char **plist_bin, uint32_t * length) | |||
| 998 | uint8_t trailer[BPLIST_TRL_SIZE]; | 992 | uint8_t trailer[BPLIST_TRL_SIZE]; |
| 999 | //for string | 993 | //for string |
| 1000 | long len = 0; | 994 | long len = 0; |
| 1001 | int type = 0; | ||
| 1002 | long items_read = 0; | 995 | long items_read = 0; |
| 1003 | long items_written = 0; | 996 | long items_written = 0; |
| 1004 | uint16_t *unicodestr = NULL; | 997 | uint16_t *unicodestr = NULL; |
| @@ -1087,7 +1080,6 @@ void plist_to_bin(plist_t plist, char **plist_bin, uint32_t * length) | |||
| 1087 | } | 1080 | } |
| 1088 | 1081 | ||
| 1089 | //free intermediate objects | 1082 | //free intermediate objects |
| 1090 | //hash_table_foreach_remove(ref_table, free_index, NULL); | ||
| 1091 | ptr_array_free(objects); | 1083 | ptr_array_free(objects); |
| 1092 | hash_table_destroy(ref_table); | 1084 | hash_table_destroy(ref_table); |
| 1093 | 1085 | ||
