Skip to content

Commit

Permalink
Missing unprotect
Browse files Browse the repository at this point in the history
…. which was causing a stack imbalance.
  • Loading branch information
DomBennett committed Sep 5, 2016
1 parent 9fa2e07 commit fc0bb5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/get_tools.c
Expand Up @@ -58,6 +58,7 @@ SEXP cGetNdPrids(SEXP prid_, SEXP prids_)
prid = prids[prid - 1];
i++;
}
UNPROTECT(1);
SEXP res;
int j;
PROTECT(res=allocVector(INTSXP, i-2));
Expand Down

0 comments on commit fc0bb5e

Please sign in to comment.