Skip to content
Snippets Groups Projects
Commit 195dc919 authored by alexey.stratulat's avatar alexey.stratulat
Browse files

[*] Fixed function calloc replaced by DAP_NEW_SIZE.

parent 0dac8f2b
No related branches found
No related tags found
1 merge request!2Bugs 3213
......@@ -23,7 +23,7 @@ PyObject* dap_app_cli_main_py(PyObject *self, PyObject *args)
Py_ssize_t l_args_py_size = PyList_Size(l_args_py);
if (l_args_py_size > 1){
l_argc = (int)l_args_py_size;
l_argv = calloc(sizeof(char*), l_argc);
l_argv = DAP_NEW_SIZE(char*, l_argc);
PyObject *l_obj_from_list = NULL;
for (int i = 0; i < l_argc; i++){
l_obj_from_list = PyList_GetItem(l_args_py, i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment