We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 309caf3 + 009f61b commit c0f6e1dCopy full SHA for c0f6e1d
src/rgw/rgw_kms.cc
@@ -80,8 +80,8 @@ class ZeroPoolAllocator {
80
return r;
81
}
82
void* Realloc(void* p, size_t old, size_t nw) {
83
- void *r = nullptr;
84
- if (nw) r = malloc(nw);
+ if (!nw) return 0;
+ void *r = Malloc(nw);
85
if (nw > old) nw = old;
86
if (r && old) memcpy(r, p, nw);
87
src/test/rgw/test_rgw_kms.cc
@@ -56,6 +56,7 @@ class TestSSEKMS : public ::testing::Test {
56
delete old_engine;
57
delete kv_engine;
58
delete transit_engine;
59
+ delete cct;
60
61
62
};
0 commit comments