/curl/docs/examples/ |
H A D | postinmemory.c | 34 char *memory; member 44 char *ptr = realloc(mem->memory, mem->size + realsize + 1); in WriteMemoryCallback() 51 mem->memory = ptr; in WriteMemoryCallback() 52 memcpy(&(mem->memory[mem->size]), contents, realsize); in WriteMemoryCallback() 54 mem->memory[mem->size] = 0; in WriteMemoryCallback() 66 chunk.memory = malloc(1); /* grown as needed by realloc above */ in main() 103 printf("%s\n",chunk.memory); in main() 110 free(chunk.memory); in main()
|
H A D | getinmemory.c | 37 char *memory; member 47 char *ptr = realloc(mem->memory, mem->size + realsize + 1); in WriteMemoryCallback() 54 mem->memory = ptr; in WriteMemoryCallback() 55 memcpy(&(mem->memory[mem->size]), contents, realsize); in WriteMemoryCallback() 57 mem->memory[mem->size] = 0; in WriteMemoryCallback() 69 chunk.memory = malloc(1); /* grown as needed by the realloc above */ in main() 112 free(chunk.memory); in main()
|
H A D | xmlstream.c | 44 char *memory; member 63 free(state->characters.memory); in startElement() 64 state->characters.memory = NULL; in startElement() 73 char *ptr = realloc(mem->memory, mem->size + len + 1); in characterDataHandler() 81 mem->memory = ptr; in characterDataHandler() 82 memcpy(&(mem->memory[mem->size]), s, len); in characterDataHandler() 84 mem->memory[mem->size] = 0; in characterDataHandler() 161 free(state.characters.memory); in main()
|
H A D | http2-pushinmemory.c | 36 char *memory; member 45 char *ptr = realloc(mem->memory, mem->size + realsize + 1); in write_cb() 52 mem->memory = ptr; in write_cb() 53 memcpy(&(mem->memory[mem->size]), contents, realsize); in write_cb() 55 mem->memory[mem->size] = 0; in write_cb() 66 chunk->memory = malloc(1); /* grown as needed with realloc */ in init_memory() 182 free(files[i].memory); in main()
|
H A D | crawler.c | 60 } memory; typedef 65 memory *mem = (memory*) ctx; in grow_buffer() 87 memory *mem = malloc(sizeof(memory)); in make_handle() 120 size_t follow_links(CURLM *multi_handle, memory *mem, char *url) in follow_links() 201 memory *mem; in main()
|
/curl/tests/data/ |
H A D | test1132 | 5 memory-includes 17 Verify memory #include files in libcurl's C source files
|
H A D | test509 | 4 memory callbacks 26 initialization with memory callbacks and actual usage
|
H A D | test96 | 23 curl memory tracking operational
|
H A D | test1330 | 24 unit tests memory tracking operational
|
H A D | test1919 | 24 # This created a memory leak in 7.83.1 and earlier
|
H A D | test558 | 28 libtest memory tracking operational
|
/curl/docs/libcurl/ |
H A D | curl_free.md | 16 curl_free - reclaim memory that has been obtained through a libcurl call 28 curl_free reclaims memory that has been obtained through a libcurl call. Use 30 differences in memory management between your application and libcurl.
|
H A D | curl_mime_data.md | 20 curl_mime_data - set a mime part's body data from memory 33 curl_mime_data(3) sets a mime part's body content from memory data. 49 Setting large data is memory consuming: one might consider using
|
H A D | curl_global_cleanup.md | 39 thread in the program (i.e. a thread sharing the same memory) is running. 59 some rare circumstances a memory leak could occur unless you implement your own
|
H A D | curl_global_init_mem.md | 16 curl_global_init_mem - global libcurl initialization with memory callbacks 35 memory functions.
|
/curl/docs/libcurl/opts/ |
H A D | CURLOPT_PROGRESSDATA.md | 49 struct progress *memory = clientp; 50 printf("private: %p\n", memory->private);
|
H A D | CURLOPT_WRITEFUNCTION.md | 83 struct memory { 91 struct memory *mem = (struct memory *)clientp; 95 return 0; /* out of memory! */ 107 struct memory chunk = {0};
|
H A D | CURLOPT_XFERINFODATA.md | 52 struct progress *memory = clientp; 53 printf("private ptr: %p\n", memory->private);
|
H A D | CURLINFO_LOCAL_IP.md | 33 enabled. Note that you get a pointer to a memory area that is reused at next 36 The **ip** pointer is NULL or points to private memory. You MUST NOT free -
|
H A D | CURLINFO_PRIMARY_IP.md | 34 get a pointer to a memory area that is reused at next request so you need to 37 The **ip** pointer is NULL or points to private memory. You MUST NOT free -
|
H A D | CURLOPT_HSTS_CTRL.md | 37 in an in-memory cache. 46 Enable the in-memory HSTS cache for this handle.
|
H A D | CURLOPT_PROXY_SSLCERT_BLOB.md | 22 CURLOPT_PROXY_SSLCERT_BLOB - SSL proxy client certificate from memory blob 36 and size) about a memory block with binary data of the certificate used to
|
H A D | CURLOPT_COOKIELIST.md | 18 CURLOPT_COOKIELIST - add to or manipulate cookies held in memory 54 erases all cookies held in memory 58 erases all session cookies held in memory
|
H A D | CURLOPT_ISSUERCERT_BLOB.md | 20 CURLOPT_ISSUERCERT_BLOB - issuer SSL certificate from memory blob 34 and size) about a memory block with binary data of a CA certificate in PEM
|
H A D | CURLOPT_SSH_KEYFUNCTION.md | 77 host+key combo to the known_host pool kept in memory if it was not already 86 known_host pool kept in memory if it was not already present there. The adding 93 the host+key combo to the known_host pool kept in memory if it was not already
|