J
James Leddy
Hello,
I am making a program that encrypts and compresses plain text and indexes
them by date.
Needless to say, I have many alloc(), realloc(), calloc(), and free() calls.
There are also double pointers all over the place.
The program works fine except for one tiny detail. Every time I try to
extract a file, the program terminates with a segmentation fault. I used
the debugger and discovered that the segmentation fault did not occur
because of an out of bounds error or anything. The segmentation fault
occurs when the program exits.
I thought that the problem was that I did not free() some block of memory
that I had previousally allocated. I checked and made sure that I had
free()d all the memory.
Could someone possibly offer an explanition as to why this keeps happening?
Thanks,
I am making a program that encrypts and compresses plain text and indexes
them by date.
Needless to say, I have many alloc(), realloc(), calloc(), and free() calls.
There are also double pointers all over the place.
The program works fine except for one tiny detail. Every time I try to
extract a file, the program terminates with a segmentation fault. I used
the debugger and discovered that the segmentation fault did not occur
because of an out of bounds error or anything. The segmentation fault
occurs when the program exits.
I thought that the problem was that I did not free() some block of memory
that I had previousally allocated. I checked and made sure that I had
free()d all the memory.
Could someone possibly offer an explanition as to why this keeps happening?
Thanks,