Author: Stan Eisenstat
Subject: Re: [Cs223] createD check
Date: Wednesday, 01 Apr 2020, 11:41:59
> Message Posted By: Unknown
>
> Should createD check if it has already created a deque with the same name?
No, that is not necessary nor is it possible.
=====
> When I'm testing my program with testDeque and I run CA, CA, DA, there are
> memory leaks that I'm not sure if I should account for.
When you destroy a non-empty deque, and any of the
items is the last pointer to a block of malloc()'d
storage, that block must be lost. Thus this is not
a situation you must treat.
--Stan-
PREV
INDEX
NEXT