Finding simple memory leaks #1707
romek-codes
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
i might be missing something simple here but can you explain to me how the code example you provided causes a memory leak? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say i have the following code:
And in SendMailRequest Class i've added this:
This will of course cause a memory leak when calling the sendMail method.
Would it be possible to find simple memory leaks like this and maybe others when running Larastan?
I think that would be a good feature to have, should probably even show up when running Larastan on level 1.
I'd like to contribute and implement this myself but I wouldn't even know where to start.
Beta Was this translation helpful? Give feedback.
All reactions