Skip to content

Commit

Permalink
free allocated ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Jul 9, 2024
1 parent 98c6d3b commit 2378b6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/r-base64.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ SEXP R_base64_encode(SEXP buf){
Rf_error("Error in base64 encode");
SEXP res = PROTECT(allocVector(STRSXP, 1));
SET_STRING_ELT(res, 0, mkCharLen((char*) out, outlen));
free(out);
UNPROTECT(1);
return res;
}
Expand Down

0 comments on commit 2378b6c

Please sign in to comment.