Skip to content

Commit 94167f2

Browse files
Annotate UNPROTECT
1 parent 9691739 commit 94167f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mergelist.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ SEXP cbindlist(SEXP x, SEXP copyArg) {
6565
mergeIndexAttrib(index, getAttrib(thisx, sym_index));
6666
if (isNull(key)) // first key is retained
6767
key = getAttrib(thisx, sym_sorted);
68-
UNPROTECT(protecti);
68+
UNPROTECT(protecti); // thisnames, thisxcol
6969
}
7070
if (isNull(ATTRIB(index)))
7171
setAttrib(ans, sym_index, R_NilValue);
7272
setAttrib(ans, R_NamesSymbol, names);
7373
setAttrib(ans, sym_sorted, key);
7474
if (verbose)
7575
Rprintf(_("cbindlist: took %.3fs\n"), omp_get_wtime()-tic);
76-
UNPROTECT(3);
76+
UNPROTECT(3); // ans, index, names
7777
return ans;
7878
}

0 commit comments

Comments
 (0)