PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: Question on Testdeque
Date: Friday, 20 Mar 2020, 19:44:50


    > Professor I was using testDeque to try my ADT, and upon using Valgrind I
    > came across this error:
    >
    > ==29871== 120 bytes in 1 blocks are definitely lost in loss record 1 of 1
    > ==29871==    at 0x483880B: malloc (vg_replace_malloc.c:309)
    > ==29871==    by 0x48F84C2: getdelim (iogetdelim.c:62)
    > ==29871==    by 0x401925: main (testDeque.c:84)

Most likely this means that you did not free line when
getline() signaled that the end of the input.

--Stan-
PREV INDEX NEXT