Skip to content
Snippets Groups Projects
Commit 4858e010 authored by Mick Jordan's avatar Mick Jordan
Browse files

inc ref count for names vector in combine

parent aa847512
Branches
No related tags found
No related merge requests found
......@@ -178,6 +178,7 @@ public abstract class Combine extends RBuiltinNode {
@ExplodeLoop
private RStringVector foldNames(BranchProfile naNameBranch, NACheck naNameCheck, Object[] elements, int size) {
RStringVector result = RDataFactory.createStringVector(new String[size], true);
result.incRefCount();
int pos = 0;
for (Object element : elements) {
pos += processNamesElement(naNameBranch, naNameCheck, result, pos, element);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment