summaryrefslogtreecommitdiffhomepage
path: root/src/python
diff options
context:
space:
mode:
authorOutOfFocus4 <jeff.iadarola@gmail.com>2022-09-13 10:36:46 -0400
committerAlejandro Colomar <alx@nginx.com>2022-11-17 21:48:56 +0100
commit3b970ed9345ee2fe27f15b43ff827630d38cc124 (patch)
tree29a7d501f8b6923a3acbb5a57a58964aefff0750 /src/python
parent2ac4a7527de8fb7ce8cfac05563a542078d65f4b (diff)
downloadunit-3b970ed9345ee2fe27f15b43ff827630d38cc124.tar.gz
unit-3b970ed9345ee2fe27f15b43ff827630d38cc124.tar.bz2
Removed dead code.
Signed-off-by: Alejandro Colomar <alx@nginx.com>
Diffstat (limited to 'src/python')
-rw-r--r--src/python/nxt_python.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/python/nxt_python.c b/src/python/nxt_python.c
index 188c4920..37204051 100644
--- a/src/python/nxt_python.c
+++ b/src/python/nxt_python.c
@@ -70,7 +70,7 @@ nxt_python_start(nxt_task_t *task, nxt_process_data_t *data)
int rc;
size_t len, size;
uint32_t next;
- PyObject *obj, *module;
+ PyObject *obj;
nxt_str_t proto, probe_proto, name;
nxt_int_t ret, n, i;
nxt_unit_ctx_t *unit_ctx;
@@ -154,7 +154,6 @@ nxt_python_start(nxt_task_t *task, nxt_process_data_t *data)
}
#endif
- module = NULL;
obj = NULL;
python_init.ctx_data = NULL;
@@ -307,7 +306,6 @@ fail:
}
Py_XDECREF(obj);
- Py_XDECREF(module);
nxt_python_atexit();