Skip to content
Snippets Groups Projects
Commit d4402ce3 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

fix memleak

parent 7a9294ad
Branches
Tags
No related merge requests found
......@@ -20,7 +20,8 @@ endif()
install(DIRECTORY ${ASAPO_CXX_COMMON_INCLUDE_DIR}/asapo/common
DESTINATION include/asapo
PATTERN "*.h.in" EXCLUDE)
PATTERN "*.h.in" EXCLUDE
PATTERN "*/internal" EXCLUDE)
install(DIRECTORY ${ASAPO_CXX_COMMON_INCLUDE_DIR}/asapo/logger
DESTINATION include/asapo )
......
......@@ -68,6 +68,7 @@ struct GenericRequestHeader {
op_code{i_op_code}, data_id{i_data_id}, data_size{i_data_size}, meta_size{i_meta_size} {
strncpy(message, i_message.c_str(), kMaxMessageSize);
strncpy(stream, i_stream.c_str(), kMaxMessageSize);
strncpy(api_version,"v0.0", kMaxVersionSize);
}
Opcode op_code;
......
......@@ -29,7 +29,6 @@ inline std::string GetRdsApiVersion() {
return "@ASAPO_RDS_API_VER@";
}
inline int VersionToNumber(const std::string& version) {
return int(atof(version.c_str()+2)*1000);
}
......
......@@ -19,6 +19,7 @@ std::mutex lock;
uint64_t file_size = 0;
inline std::string ConnectionTypeToString(asapo::NetworkConnectionType type) {
switch (type) {
case asapo::NetworkConnectionType::kUndefined:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment