Memory leak: Unfreed block
<p>I would like to know who can I fix a memory leak in this method:</p>

<pre><code>void addCard(int num,int suit)
{
    CardNode* newNode;
    newNode = new CardNode(num,suit);
    if(getHead() == NULL)
    {
        setHead(newNode);
        setTail(newNode);
    }
    else
    {
        setTailNext(newNode);
        setTail(newNode);
    }
}
</code></pre>
