-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Leak of memory or pointers to system resources
Defect 72656 (STATIC_C)
Checker RESOURCE_LEAK (subcategory none)
File: /src/mongoc/mongoc-gridfs.c
Function _mongoc_gridfs_new
/src/mongoc/mongoc-gridfs.c, line: 116
Assigning: "gridfs" = storage returned from "bson_malloc0(24UL)".
gridfs = (mongoc_gridfs_t *) bson_malloc0 (sizeof *gridfs);
/src/mongoc/mongoc-gridfs.c, line: 128
Variable "gridfs" going out of scope leaks the storage it points to.
if (!r) { return NULL; }