CUDA program throwing memory leak error?

You forgot to allocate memory for char **c . Therefore, in the error-causing line c is a "dead pointer", i.e. Either equal to NULL or referring to a section of memory that is not owned by your program.

In other words c points to an empty, unallocated array of C strings. Adressing the c0 element (supposedly the first string in the array, which does not exist) is illegal and gives you a segmentation fault, because you're trying to write something (the value of d ) into a location which you do not own.

Firstly, from the code it's not at all clear what you are trying to do so perhaps adding this to the Q would help. Secondly what exactly is the error message you are getting from the compiler?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions