Skip to content

Commit

Permalink
Merge pull request #198 from project-tsurugi/delete-release_message-2
Browse files Browse the repository at this point in the history
fix leak around release_message() call
  • Loading branch information
t-horikawa committed May 8, 2024
2 parents c155a04 + 9ce34d5 commit 6b8b8d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tateyama/endpoint/common/worker_common.h
@@ -1,5 +1,5 @@
/*
* Copyright 2018-2023 Project Tsurugi.
* Copyright 2018-2024 Project Tsurugi.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -178,7 +178,6 @@ class worker_common {
record.set_code(code);
record.set_message(message);
res->error(record);
record.release_message();
}

bool endpoint_service(const std::shared_ptr<tateyama::api::server::request>& req,
Expand Down

0 comments on commit 6b8b8d0

Please sign in to comment.