I would like to know if it is possible to detect when a user closes the console and then execute a function that frees the memory allocated by previou ...
I would like to know if it is possible to detect when a user closes the console and then execute a function that frees the memory allocated by previou ...
Ive tried creating a dynamic database in which the user inputs the size of the database they want to create however im getting a memory leak after a c ...
I have a C program where I run 3 branches of code: 2 that i started through pthread_create and the normal one. I am wondering how to correctly protect ...
Seems I'm missing that option from my settings. Is it because I'm using the free tier? Don't see the option "Service Connections" following the steps ...
I am dynamically allocating memory at the beginning of a for using: whereby Candset and Point_t are both typedef. later I free the memory at the en ...
I wrote this program and I want to free a structure myStruct but it doesn't compile it says: free():double free detected in tcache2 Can you hel ...
This question was migrated from Unix & Linux Stack Exchange because it can ...
I searched online a lot for finding a free alternative for Elementor Pro role manager. I would like to restrict my clients for editing whole pages in ...
I am developing a program that is supposed to take a string as a parameter and display the number of occurrences of each word in their order of appear ...
I am trying to complete an exercise with the following requirements: Create the function ft_list_remove_if which removes from the list, all elemen ...
I want to build a graph that creates a new parent node by merging two child nodes. The code below is supposed to merge node a and b into a parent node ...
I want to migrate my client's environment from drop box to SharePoint Online without using third party tools. Can somebody guide me through the free t ...
I have pointer to buffer that was initialised with calloc: Later I moved pointer to another position: And finally I free buffer: Will if free ...
I'm still writing my own implementation of get_next_line, a function that takes a file descriptor and outputs the line of the file, then the next line ...
Let’s say I have a pointer and allocate some memory for it. In case malloc would return a null pointer for whatever reasons, is it considered good pra ...
I'm revisiting C after quite a long break, and have been utilising growable arrays specifically to help me get back into manual memory management. I u ...
I'm dealing with structure and pointer. I've a doubt about how free works, considering this code: free will free just the sizeof(struct point) betw ...
I am trying to free the struct elements of a struct list with a function. This is the problem: error: no member named 'next' in 'struct _list' ali ...
I'm trying to write a code that dynamically writes the Coordinates of a Point on the Stack and prints (and frees) them back: It prints the last ent ...
I did not set breakpoints. My main program controls the acquisition of input and then performs verification. The first input is OK, but after one inpu ...