‫OK, welcome back, everyone.
‫There's another memory leak in the tax directory process, Stazi process low binary.
‫And I do apologize for all these memory leaks.
‫Even I can make mistakes, but we will get them fixed.
‫So don't worry.
‫OK, so you can see online, three, two, one.
‫We said the response to Inzamam go to out.
‫That's that's fine.
‫But everything under this all year is under this have potential for a memory leak such as if we fail
‫to read, we just got out and we don't even bother to read the data here.
‫OK, so yeah, that needs to be fixed.
‫So what we're going to do, guys, we're going to put this at the top of the file like file, so we're
‫just going to reprogram Datapoint EQUASS Casula.
‫And we're just going to put that at the top by there and just set it to no.
‫OK, so that'll solve the scope problem that we're about to encounter.
‫And this this time, I'm going to show you a different way we can feed the memory, because I know in
‫the past few lectures where we fix the memory leaks, we create a new label and stuff for this type
‫of implementation where you have the response code like that, you can just do something like this,
‫right.
‫So you can go if rest below zero and then we can say if program data pointer, Kifri program data pointer.
‫So that's another way to do it.
‫So I'm just showing you different ways.
‫You know, you might want to play around with your most preferred solution.
‫Both are OK.
‫However, yeah.
‫Just use what looks clean to you.
‫That's the rule I have.
‫So you're here.
‫If the rest is below zero, there's an error.
‫So then we can then check if this pointer exists like we allocated memory for it.
‫And if we did, we can just free it.
‫OK, and you can see that that then fixes that memory.
‫OK, so we're just going to save this file and just check everything works.
‫OK, so we're going to go make clean bill to the stage.
‫And that compiles good, we're going to keep in and we're going to run Kumu.
‫And there we go, so we can see that that's now fixed, that memory leak and everything seems to be
‫fine.
‫OK, guys, thanks for watching and I hope this lecture was useful for you in fixing this memory leak.