Skip to content

Commit 978264b

Browse files
committed
add UNPROTECT
1 parent d217eee commit 978264b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/assign.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ static int _selfrefok(SEXP x, Rboolean checkNames, Rboolean verbose) {
115115
// Not being an extptr is for when users construct a data.table via structure() using dput, post
116116
// a question, and find the extptr doesn't parse so put quotes around it (for example).
117117
// In both cases the selfref is not ok.
118+
UNPROTECT(1);
118119
return 0;
119120
}
120121
p = R_ExternalPtrAddr(v);

0 commit comments

Comments
 (0)