Skip to content

Commit 817f7fa

Browse files
nocov: not reasonable to test in CI
1 parent ac13698 commit 817f7fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/forder.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ static void range_str(const SEXP *x, int n, uint64_t *out_min, uint64_t *out_max
363363
// now use the 1-1 mapping from ustr to ustr2 to get the ordering back into original ustr, being careful to reset tl to 0
364364
int *tl = (int *)malloc(ustr_n * sizeof(int));
365365
if (!tl) {
366-
free(ustr3);
366+
free(ustr3); // # nocov
367367
STOP(_("Failed to alloc tl when converting strings to UTF8")); // # nocov
368368
}
369369
const SEXP *tt = STRING_PTR_RO(ustr2);
@@ -667,7 +667,7 @@ SEXP forder(SEXP DT, SEXP by, SEXP retGrpArg, SEXP retStatsArg, SEXP sortGroupsA
667667
if (key[nradix+b]==NULL) {
668668
uint8_t *tt = calloc(nrow, sizeof(uint8_t)); // 0 initialize so that NA's can just skip (NA is always the 0 offset)
669669
if (!tt) {
670-
free(key);
670+
free(key); // # nocov
671671
STOP(_("Unable to allocate %"PRIu64" bytes of working memory"), (uint64_t)nrow*sizeof(uint8_t)); // # nocov
672672
}
673673
key[nradix+b] = tt;

0 commit comments

Comments
 (0)