From 7a77e0a80e633bdb5cb3f2b633eebdbf70f6a430 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期二, 27 十二月 2022 10:16:51 +0800
Subject: [PATCH] restruct

---
 message.cpp |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/message.cpp b/message.cpp
index 5c15f6c..f7f42f3 100644
--- a/message.cpp
+++ b/message.cpp
@@ -13,7 +13,7 @@
 #include "google/protobuf/dynamic_message.h"
 #include "google/protobuf/compiler/importer.h"
 
-#include "3dparty/yyjson/yyjson.h"
+#include "3rdparty/yyjson/yyjson.h"
 
 #include "bhome_msg_api.pb.h"
 using namespace bhome_msg;
@@ -635,3 +635,10 @@
     yyjson_mut_doc_free(doc);
     return cstr_ref(json, jsonl);
 }
+
+void free_query_procs(struct cqueryprocs* procs, const size_t count){
+    for(size_t i = 0; i < count; i++){
+        free(procs[i].id);
+    }
+    free(procs);
+}

--
Gitblit v1.8.0