diff options
| author | 2010-04-13 17:12:50 -0500 | |
|---|---|---|
| committer | 2012-03-20 23:25:55 +0100 | |
| commit | 7275b8e8b1134c85d6f4b694ad6f515b3a6dace9 (patch) | |
| tree | 3ab34f9097528839c2c78b70b659ba7d90cf736c /cython/lockdown.pxi | |
| parent | 360b7316b520baeae11c98cbd6423029141c2137 (diff) | |
| download | libimobiledevice-7275b8e8b1134c85d6f4b694ad6f515b3a6dace9.tar.gz libimobiledevice-7275b8e8b1134c85d6f4b694ad6f515b3a6dace9.tar.bz2 | |
Use stdlib.free and plist.plist_free.
Diffstat (limited to 'cython/lockdown.pxi')
| -rw-r--r-- | cython/lockdown.pxi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cython/lockdown.pxi b/cython/lockdown.pxi index 76f84b1..f8955e5 100644 --- a/cython/lockdown.pxi +++ b/cython/lockdown.pxi | |||
| @@ -122,7 +122,7 @@ cdef class LockdownClient(PropertyListService): | |||
| 122 | finally: | 122 | finally: |
| 123 | if c_type != NULL: | 123 | if c_type != NULL: |
| 124 | result = c_type | 124 | result = c_type |
| 125 | free(c_type) | 125 | stdlib.free(c_type) |
| 126 | 126 | ||
| 127 | return result | 127 | return result |
| 128 | 128 | ||
| @@ -141,7 +141,7 @@ cdef class LockdownClient(PropertyListService): | |||
| 141 | self.handle_error(err) | 141 | self.handle_error(err) |
| 142 | except BaseError, e: | 142 | except BaseError, e: |
| 143 | if c_node != NULL: | 143 | if c_node != NULL: |
| 144 | plist_free(c_node) | 144 | plist.plist_free(c_node) |
| 145 | raise | 145 | raise |
| 146 | 146 | ||
| 147 | return plist.plist_t_to_node(c_node) | 147 | return plist.plist_t_to_node(c_node) |
| @@ -154,7 +154,7 @@ cdef class LockdownClient(PropertyListService): | |||
| 154 | raise | 154 | raise |
| 155 | finally: | 155 | finally: |
| 156 | if c_node != NULL: | 156 | if c_node != NULL: |
| 157 | plist_free(c_node) | 157 | plist.plist_free(c_node) |
| 158 | 158 | ||
| 159 | cpdef remove_value(self, bytes domain, bytes key): | 159 | cpdef remove_value(self, bytes domain, bytes key): |
| 160 | self.handle_error(lockdownd_remove_value(self._c_client, domain, key)) | 160 | self.handle_error(lockdownd_remove_value(self._c_client, domain, key)) |
| @@ -207,7 +207,7 @@ cdef class LockdownClient(PropertyListService): | |||
| 207 | finally: | 207 | finally: |
| 208 | if c_session_id != NULL: | 208 | if c_session_id != NULL: |
| 209 | session_id = c_session_id | 209 | session_id = c_session_id |
| 210 | free(c_session_id) | 210 | stdlib.free(c_session_id) |
| 211 | 211 | ||
| 212 | return (session_id, ssl_enabled) | 212 | return (session_id, ssl_enabled) |
| 213 | 213 | ||
