Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
a4d2edf1
Commit
a4d2edf1
authored
8 years ago
by
Roman Tsisyk
Browse files
Options
Downloads
Patches
Plain Diff
phia: fix memory leak in findByKey()
Regression introduced by
335391d0
parent
5e7936a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/box/phia_index.cc
+3
-0
3 additions, 0 deletions
src/box/phia_index.cc
test/phia/info.result
+2
-2
2 additions, 2 deletions
test/phia/info.result
with
5 additions
and
2 deletions
src/box/phia_index.cc
+
3
−
0
View file @
a4d2edf1
...
...
@@ -130,6 +130,9 @@ PhiaIndex::findByKey(struct phia_tuple *phia_key) const
if
(
result
==
NULL
)
/* not found */
return
NULL
;
auto
tuple_guard
=
make_scoped_guard
([
=
]
{
phia_tuple_unref
(
db
,
result
);
});
return
phia_convert_tuple
(
db
,
result
,
key_def
,
format
);
}
...
...
This diff is collapsed.
Click to expand it.
test/phia/info.result
+
2
−
2
View file @
a4d2edf1
...
...
@@ -116,8 +116,8 @@ box_info_sort(box.info.phia())
- cursor_read_disk: 0 0 0.0
- delete: '0'
- delete_latency: 0 0 0.0
- documents: '
3
'
- documents_used: '
102
'
- documents: '
2
'
- documents_used: '
68
'
- get: '1'
- get_latency: <get_latency>
- get_read_cache: 0 0 0.0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment