Free
malloc/free, appear to be getting multiple frees
I\'ve written a function to test if a given path is a valid Maildir directory (开发者_如何学运维standard Maildir has the three subfolders \"cur\" \"new\" and \"tmp\" ). Function takes in the supposed[详细]
2023-03-16 05:02 分类:问答How to find out whether the address supplied to free() is an invalid address?
Is there any way to find out whether an address supplied to 开发者_C百科free( ) is an invalid address, before calling the free( )?[详细]
2023-03-16 01:42 分类:问答How can I create a buffer which Python would not free?
I need to call a function in a C library from python, which would free() the parameter. So I tried create_string_buffer(), but it seems like that this buffer would be freed by Python later, and this w[详细]
2023-03-15 22:42 分类:问答how does 'free/delete' work? [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicates: How does delete work in C++?[详细]
2023-03-14 16:33 分类:问答What's the best method to free memory?
I\'m working on ANSI C. I have a string object which created with array of char.. I think the object make a memory leak..[详细]
2023-03-13 16:42 分类:问答There is no point in freeing blocks at end of program? [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: Is freeing allocated memory needed when exiting a program in C[详细]
2023-03-13 09:50 分类:问答How does std::vector copy objects to its internal storage
I have the following problem: void add(){ cRow Row(); Row.add(\"Column\", \"Value\"); std::vector<cRow> mRows;[详细]
2023-03-13 04:24 分类:问答Passing pointers with space allocated by malloc
I\'ve just written a function that returns a pointer to a block of memory allocated by malloc.If I call free() on the returned pointer, will this free the memory?[详细]
2023-03-09 14:54 分类:问答Investigating a bad free() pointer reference
My program is crashing badly in an unitary test, due to a free() call to a bad pointer, with this error message:[详细]
2023-03-09 14:44 分类:问答CUDA fails when freeing memory after kernel execution error
I have found weird behavior of CUDA. After I got segfault in my kernel, I was trying to free prior allocated memory and it fails. Does CUDA do it automatically? I mean, does CUDA free memory after seg[详细]
2023-03-08 15:56 分类:问答