Skip to content

Commit

Permalink
This fixes malloc error: incorrect checksum for freed object - object…
Browse files Browse the repository at this point in the history
… was probably modified after being freed.
  • Loading branch information
jeroen committed Jan 1, 2015
1 parent bc493c8 commit 2d07e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/curl.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ SEXP R_curl_connection(SEXP url, SEXP mode) {
req->used = 0;

/* allocate url string */
req->url = malloc(strlen(translateCharUTF8(asChar(url))+1));
req->url = malloc(strlen(translateCharUTF8(asChar(url))) + 1);
strcpy(req->url, translateCharUTF8(asChar(url)));

/* set connection properties */
Expand Down

0 comments on commit 2d07e3f

Please sign in to comment.