C Programming Language
Advanced C (COP2222)
Valencia Community College
November 9, 1999
Several people have pointed out an error in the T_fread() function, to wit...
I use calloc() to allocate memory for a local variable, but do not explicitly release the memory with the free() function. This causes a memory leak because, although the variable is released at the end of the T_fread() function, the memory is not deallocated automatically.
To correct this, please add the line:
before the 'return' statements in T_fread().
I apologize for any inconvenience this has caused, along with any threat to national security, the environment, the price of gasoline, the spread of AIDS, global hunger, or the extinction of any species of animal, plant, or microorganism.