/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 66 free(state->characters.memory); in startElement() 67 state->characters.memory = NULL; in startElement() 76 char *ptr = realloc(mem->memory, mem->size + (unsigned long)len + 1); in characterDataHandler() 84 mem->memory = ptr; in characterDataHandler() 85 memcpy(&(mem->memory[mem->size]), s, len); in characterDataHandler() 87 mem->memory[mem->size] = 0; in characterDataHandler() 164 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 | 61 } memory; typedef 66 memory *mem = (memory*) ctx; in grow_buffer() 82 memory *mem; in make_handle() 89 mem = malloc(sizeof(memory)); in make_handle() 122 static size_t follow_links(CURLM *multi_handle, memory *mem, const char *url) in follow_links() 216 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
|
/curl/docs/libcurl/ |
H A D | curl_free.md | 17 curl_free - reclaim memory that has been obtained through a libcurl call 29 curl_free reclaims memory that has been obtained through a libcurl call. Use 31 differences in memory management between your application and libcurl.
|
H A D | curl_mime_data.md | 21 curl_mime_data - set a mime part's body data from memory 34 curl_mime_data(3) sets a mime part's body content from memory data. 50 Setting large data is memory consuming: one might consider using
|
H A D | curl_global_cleanup.md | 40 thread in the program (i.e. a thread sharing the same memory) is running. 60 some rare circumstances a memory leak could occur unless you implement your own
|
H A D | curl_global_init_mem.md | 17 curl_global_init_mem - global libcurl initialization with memory callbacks 36 memory functions.
|
/curl/docs/libcurl/opts/ |
H A D | CURLOPT_PROGRESSDATA.md | 52 struct progress *memory = clientp; 53 printf("private: %p\n", memory->private);
|
H A D | CURLOPT_XFERINFODATA.md | 55 struct progress *memory = clientp; 56 printf("private ptr: %p\n", memory->private);
|
H A D | CURLOPT_WRITEFUNCTION.md | 86 struct memory { 94 struct memory *mem = (struct memory *)clientp; 98 return 0; /* out of memory */ 110 struct memory chunk = {0};
|
H A D | CURLOPT_HSTS_CTRL.md | 38 in an in-memory cache. 47 Enable the in-memory HSTS cache for this handle.
|
H A D | CURLINFO_PRIMARY_IP.md | 35 get a pointer to a memory area that is reused at next request so you need to 38 The **ip** pointer is NULL or points to private memory. You MUST NOT free -
|
H A D | CURLINFO_LOCAL_IP.md | 35 that you get a pointer to a memory area that is reused at next request so you 38 The **ip** pointer is NULL or points to private memory. You MUST NOT free - it
|
H A D | CURLOPT_PROXY_SSLCERT_BLOB.md | 23 CURLOPT_PROXY_SSLCERT_BLOB - SSL proxy client certificate from memory blob 37 and size) about a memory block with binary data of the certificate used to
|
H A D | CURLOPT_COOKIELIST.md | 19 CURLOPT_COOKIELIST - add to or manipulate cookies held in memory 55 erases all cookies held in memory 59 erases all session cookies held in memory
|
H A D | CURLOPT_ISSUERCERT_BLOB.md | 21 CURLOPT_ISSUERCERT_BLOB - issuer SSL certificate from memory blob 35 and size) about a memory block with binary data of a CA certificate in PEM
|
H A D | CURLOPT_PROXY_ISSUERCERT_BLOB.md | 22 CURLOPT_PROXY_ISSUERCERT_BLOB - proxy issuer SSL certificate from memory blob 36 size) about a memory block with binary data of a CA certificate in PEM
|
H A D | CURLOPT_SSH_KEYFUNCTION.md | 78 host+key combo to the known_host pool kept in memory if it was not already 87 known_host pool kept in memory if it was not already present there. The adding 94 the host+key combo to the known_host pool kept in memory if it was not already
|