zhangmeng
2022-12-27 cf0a3209b51babf72469d962914db0dac2e5f52c
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);
}