diff options
author | Jason Rassi <rassi@10gen.com> | 2015-04-08 14:04:17 -0400 |
---|---|---|
committer | Jason Rassi <rassi@10gen.com> | 2015-04-08 14:56:05 -0400 |
commit | 655f6f61888035798519a5866dec9f9d76f7c224 (patch) | |
tree | d354f40c82427a4e306e90ba9dbd970b773876ec /src/mongo/db/catalog/index_catalog.cpp | |
parent | 269576644b85f84364c3ceca694774e2c66bc9f9 (diff) | |
download | mongo-655f6f61888035798519a5866dec9f9d76f7c224.tar.gz |
SERVER-17901 Fix memory leak in IndexCatalog::_isSpecOk()
Diffstat (limited to 'src/mongo/db/catalog/index_catalog.cpp')
-rw-r--r-- | src/mongo/db/catalog/index_catalog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/index_catalog.cpp b/src/mongo/db/catalog/index_catalog.cpp index 32a2a5c29d7..483d2f1ad2b 100644 --- a/src/mongo/db/catalog/index_catalog.cpp +++ b/src/mongo/db/catalog/index_catalog.cpp @@ -592,8 +592,9 @@ namespace { if ( !res.isOK() ) { return res.getStatus(); } + const std::unique_ptr<MatchExpression> filterExpr( res.getValue() ); - Status status = _checkValidFilterExpressions(res.getValue()); + Status status = _checkValidFilterExpressions( filterExpr.get() ); if (!status.isOK()) { return status; } |