Skip to content

Commit c5cd794

Browse files
committed
Call destructor in __deepcopy__
1 parent a45286c commit c5cd794

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ada_url/ada_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def __deepcopy__(self, memo):
216216
cls = self.__class__
217217
ret = cls.__new__(cls)
218218
super(URL, ret).__init__()
219-
ret.urlobj = lib.ada_copy(self.urlobj)
219+
ret.urlobj = _get_obj(lib.ada_copy, lib.ada_free, self.urlobj)
220220

221221
return ret
222222

0 commit comments

Comments
 (0)