From 9e607cdcdcd64069301e6bc2c3e502295078840a Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Sun, 21 Jul 2024 23:37:34 -0700 Subject: [PATCH] separate UNPROTECT()? --- src/rbindlist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rbindlist.c b/src/rbindlist.c index d14fb9a3c..6faf60c86 100644 --- a/src/rbindlist.c +++ b/src/rbindlist.c @@ -538,6 +538,7 @@ SEXP rbindlist(SEXP l, SEXP usenamesArg, SEXP fillArg, SEXP idcolArg) } } } - UNPROTECT(2 + nprotect); // ans, ansNames, coercedForFactor? + UNPROTECT(nprotect); // coercedForFactor? + UNPROTECT(2); // ans, ansNames return(ans); }