Free
Remote Procedure Call cleanup
My situation is the following: I\'ve implemented a simple RPC system in C through which a client can call a remote function to which it passes a command. The command is executed on the remote machine[详细]
2023-04-09 15:33 分类:问答Good practice to free malloc's at program conclusion?
I have a simple program which reads a bunch of ini file settings in memory allocated dynamically (malloc), then does stuff in loops for a long time, then ends.When I run valgrind I see that the memory[详细]
2023-04-08 00:19 分类:问答execv and testing correct absolute paths
I\'m trying to test absolute paths on a l开发者_StackOverflow中文版inux machine to find where a program is located so I can run it with my specific arguments. The problem is, when I find it, I keep ad[详细]
2023-04-07 14:16 分类:问答When should I use free() in C?
The code works as it is supposed to, though it never frees the memory allocated by malloc(). I have tried to free memory in any place that I can, but no matter where I do it, it breaks the program. S[详细]
2023-04-04 05:25 分类:问答Double Free Error
I made a function for an object called copy() that should just return an instance of the object with all the same values -[详细]
2023-04-01 10:12 分类:问答Freeing pointers in a dynamic array
Following on from a previous question I had here : Copying a string from a pointer to a string I\'m now trying to add the copied string into a dynamic array, which will gradually increase in size de[详细]
2023-03-31 02:46 分类:问答Assign an object reference to a variable
I have a question about assign here, I want to know whether Assign makes a copy of the whole object and[详细]
2023-03-28 13:49 分类:问答LinkedList - How to free the memory allocated using malloc
I have a very simple C code for constructing a Singly Linked list as below, in which开发者_Python百科 I allocate memory for each node dynamically using malloc. At the end of code, I want to free the m[详细]
2023-03-27 02:31 分类:问答2d array in C with negative indices
I am writing a C-program where I need 2D-arrays (dynamically allocated) with negative indices or where the index does not start at zero. So for an array[i][j] the row-index i should take values from e[详细]
2023-03-26 17:08 分类:问答problem with free function again!!!(C linux)
I have a problem with free() function in C linux. here is my sample code: typedef struct { char index[2];[详细]
2023-03-26 01:16 分类:问答
加载中,请稍侯......