summaryrefslogtreecommitdiff
path: root/c/cdlopen.c
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-11 05:06:07 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-11 05:06:07 +0000
commitee6e9789420f9e81a34a3df7afcaf3bd7ac0c7d1 (patch)
tree64f8c90740adbe25c30379d6567fd2acafcbd2dd /c/cdlopen.c
parentcfef9f25f39bdaf362b7cbccc51720e3a0ed3d35 (diff)
parent046d35db06dec26c759b92b7d8de38a979d84c0b (diff)
downloadcffi-ee6e9789420f9e81a34a3df7afcaf3bd7ac0c7d1.tar.gz
Change-Id: I25ab4fac7810181b81cdda451d2aa7121266db70
Diffstat (limited to 'c/cdlopen.c')
-rw-r--r--c/cdlopen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/c/cdlopen.c b/c/cdlopen.c
index ad33bbd..0ed319b 100644
--- a/c/cdlopen.c
+++ b/c/cdlopen.c
@@ -43,12 +43,13 @@ static PyObject *ffi_dlopen(PyObject *self, PyObject *args)
const char *modname;
PyObject *temp, *result = NULL;
void *handle;
+ int auto_close;
- handle = b_do_dlopen(args, &modname, &temp);
+ handle = b_do_dlopen(args, &modname, &temp, &auto_close);
if (handle != NULL)
{
result = (PyObject *)lib_internal_new((FFIObject *)self,
- modname, handle);
+ modname, handle, auto_close);
}
Py_XDECREF(temp);
return result;