LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   double free or corruption (out) (https://www.linuxquestions.org/questions/programming-9/double-free-or-corruption-out-4175446745/)

durgakishore 01-22-2013 08:41 AM

double free or corruption (out)
 
double free or corruption (out) is the error i am having in my c program give me some suggestion to getout of this error

NevemTeve 01-22-2013 08:46 AM

For a start:

Code:

#define MYFREE(ptr) \
{\
    if (ptr) free (ptr);\
    ptr= NULL;\
}


durgakishore 02-06-2013 04:12 AM

nedi code in c
 
i have written code on new edge directed interpolation code in c i am getting pixel values greater than 255. any one can help me i cant display code due to security reasons of my firm

NevemTeve 02-06-2013 04:58 AM

Yes, provided they are mind-readers and/or clairvoyants. But please don't hijack other people's threads.

pan64 02-06-2013 06:57 AM

you can try to use valgrind to check memory handling

colucix 02-06-2013 07:01 AM

Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.

JohnGraham 02-06-2013 07:27 AM

Use ddd or gdb to run your program, and make sure either debugging information's compiled-in or get someone to look at it who knows the assembly language for whichever platform you're running.


All times are GMT -5. The time now is 08:55 AM.