Details
-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
4.5.0
-
None
-
Untriaged
-
Unknown
-
KV: 1st Aug - 12th Aug
Description
As identified when verifying MB-18201, there are two memory leaks when couchstore is used as the storage engine:
home/couchbase/jenkins/workspace/ep-engine-gerrit-watson/label/ubuntu-1204/couchstore/src/couch_db.cc:453
|
Code
|
0443 }
|
0444
|
0445 DocInfo* couchstore_alloc_docinfo(const sized_buf *id, const sized_buf *rev_meta) {
|
0446 size_t size = sizeof(DocInfo);
|
0447 if (id) {
|
0448 size += id->size;
|
0449 }
|
0450 if (rev_meta) {
|
0451 size += rev_meta->size;
|
0452 }
|
0453 DocInfo* docInfo = static_cast<DocInfo*>(malloc(size)); // XXX HERE
|
0454 if (!docInfo) {
|
0455 return NULL;
|
0456 }
|
0457 memset(docInfo, 0, sizeof(DocInfo));
|
0458 char *extra = (char *)docInfo + sizeof(DocInfo);
|
Attachments
Issue Links
- relates to
-
MB-18201 forestdb: Memory leaks in ep-engine_kvstore_test
- Closed