What happens in JavaScript if I never call a callback?
<p>Suppose I have the following code</p>

<pre><code>function myFunction(param, callback) {
    ...
    if (err) {
        console.log("error");
        console.log(err);
    }
    else {
        callback(data);
    }
}
</code></pre>

<p>In the case of no error, the callback is called.  In the case of an error, it is not.  Suppose the calling function looks something like the following</p>

<pre><code>myFunction(param, function(data) {
...
});
</code></pre>

<p>Are there memory leak issues or similar?  Is there a better way to handle this scenario?</p>
