diff options
| -rw-r--r-- | cython/plist.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx index b148687..f6696d6 100644 --- a/cython/plist.pyx +++ b/cython/plist.pyx | |||
| @@ -116,7 +116,7 @@ cdef class Node: | |||
| 116 | plist_to_bin(self._c_node, &out, &length) | 116 | plist_to_bin(self._c_node, &out, &length) |
| 117 | 117 | ||
| 118 | try: | 118 | try: |
| 119 | return _from_string_and_size(out, length) | 119 | return bytes(out[:length]) |
| 120 | finally: | 120 | finally: |
| 121 | if out != NULL: | 121 | if out != NULL: |
| 122 | libc.stdlib.free(out) | 122 | libc.stdlib.free(out) |
