PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs223] Memory leak due to line
Date: Monday, 06 Apr 2020, 07:50:58


    > Message Posted By: Someone
    >
    > In my while loop to get all the lines, whenever I do line = NULL it
    > allocates blocks in the memory. What is this caused by?

This sounds like the expected behavior of getline() (see
"man getline"), but I cannot diagnose the problem further
without being able to see and run your code.

--Stan-
PREV INDEX NEXT