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

src/modules/app_python3/apy_kemi.c

index 7769046..2c4d73e 100644 (file)
@@ -184,6 +184,14 @@ 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");
+                       sr_kemi_xval_free(rx);
+                       return sr_apy_kemi_return_none();
                case SR_KEMIP_XVAL:
                        /* unknown content - return false */
                        return sr_kemi_apy_return_false();