app_python: for now return none for array and map kemi results
authorDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 15 Apr 2020 09:44:44 +0000 (11:44 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 15 Apr 2020 09:44:44 +0000 (11:44 +0200)
- free result structure

src/modules/app_python/apy_kemi.c

index 96fa2cf..5d1489e 100644 (file)
@@ -181,6 +181,12 @@ PyObject *sr_kemi_apy_return_xval(sr_kemi_t *ket, sr_kemi_xval_t *rx)
                        } else {
                                return sr_kemi_apy_return_false();
                        }
+               case SR_KEMIP_ARRAY:
+                       LM_ERR("unsupported return type: array\n");
+                       sr_kemi_xval_free(rx);
+                       return sr_apy_kemi_return_none();
+               case SR_KEMIP_DICT:
+                       LM_ERR("unsupported return type: map\n");
                case SR_KEMIP_XVAL:
                        /* unknown content - return false */
                        return sr_kemi_apy_return_false();