1281 static PyObject *
1282 HbacRequestElement_repr(HbacRequestElement *self)
1283 {
1284 char *strgroups;
1285 PyObject *o, *format, *args;
1286
1287 format = sss_python_unicode_from_string("<name %s groups [%s]>");
when sss_python_unicode_from_string() succeeds
1288 if (format == NULL) {
taking False path
1289 return NULL;
1290 }
1291
1292 strgroups = str_concat_sequence(self->groups, discard_const_p(char, ","));
1293 if (strgroups == NULL) {
when treating unknown char * from src/python/pyhbac.c:1292 as NULL
taking True path
1294 Py_DECREF(format);
when taking True path
1295 return NULL;
1296 }
1297
1298 args = Py_BuildValue(sss_py_const_p(char, "Os"), self->name, strgroups);
1299 if (args == NULL) {
1300 PyMem_Free(strgroups);
1301 Py_DECREF(format);
1302 return NULL;
1303 }
1304
1305 o = PyUnicode_Format(format, args);
1306 PyMem_Free(strgroups);
1307 Py_DECREF(format);
1308 Py_DECREF(args);
1309 return o;
1310 }
returning (PyObject*)NULL without setting an exception
found 1 similar trace(s) to this