summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/ari/ari_websockets.c2
-rw-r--r--res/res_sorcery_astdb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/res/ari/ari_websockets.c b/res/ari/ari_websockets.c
index 13650c293..a34e0f691 100644
--- a/res/ari/ari_websockets.c
+++ b/res/ari/ari_websockets.c
@@ -142,7 +142,7 @@ struct ast_json *ast_ari_websocket_session_read(
int ast_ari_websocket_session_write(struct ast_ari_websocket_session *session,
struct ast_json *message)
{
- RAII_VAR(char *, str, NULL, ast_free);
+ RAII_VAR(char *, str, NULL, ast_json_free);
#ifdef AST_DEVMODE
if (!session->validator(message)) {
diff --git a/res/res_sorcery_astdb.c b/res/res_sorcery_astdb.c
index 65a6a504e..ecea885d0 100644
--- a/res/res_sorcery_astdb.c
+++ b/res/res_sorcery_astdb.c
@@ -126,7 +126,7 @@ static int sorcery_json_equal(struct ast_json *object, struct ast_json *criteria
static int sorcery_astdb_create(const struct ast_sorcery *sorcery, void *data, void *object)
{
RAII_VAR(struct ast_json *, objset, ast_sorcery_objectset_json_create(sorcery, object), ast_json_unref);
- RAII_VAR(char *, value, NULL, ast_free_ptr);
+ RAII_VAR(char *, value, NULL, ast_json_free);
const char *prefix = data;
char family[strlen(prefix) + strlen(ast_sorcery_object_get_type(object)) + 2];