# Memory leak, what am I doing wrong?

**URL:** <https://discourse.nodered.org/t/memory-leak-what-am-i-doing-wrong/627>\
**Category:** General\
**Created:** [5 June 2018 17:52 UTC](https://discourse.nodered.org/t/memory-leak-what-am-i-doing-wrong/627 "2018-06-05T17:52:58Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 December 2018 18:23 UTC](https://discourse.nodered.org/t/memory-leak-what-am-i-doing-wrong/627/27 "2018-12-10T18:23:14Z")

</div>

Well it's never been reported until now 🙂  
but yes it would have to hold onto the old image until a new one arrives in order to compare the two.  
Also it works across different topics - so if you had changing topics on the msg (maybe for some ID or other) - then there would be an old image per topic... which if they had something like date in (for no good reason I can think of 🙂 then it could potentially grow indefinitely.

---

_[View the full topic](https://discourse.nodered.org/t/memory-leak-what-am-i-doing-wrong/627)._
