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

src/modules/app_ruby/app_ruby_api.c

index 4d9bbbd..41e6a3e 100644 (file)
@@ -769,6 +769,14 @@ VALUE sr_kemi_ruby_return_xval(sr_kemi_t *ket, sr_kemi_xval_t *rx)
                        } else {
                                return Qfalse;
                        }
+               case SR_KEMIP_ARRAY:
+                       LM_ERR("unsupported return type: array\n");
+                       sr_kemi_xval_free(rx);
+                       return Qnil;
+               case SR_KEMIP_DICT:
+                       LM_ERR("unsupported return type: map\n");
+                       sr_kemi_xval_free(rx);
+                       return Qnil;
                case SR_KEMIP_XVAL:
                        /* unknown content - return false */
                        return Qfalse;