‫Hello, everybody, welcome back.
‫There's another memory leak we need to fix in Fat 16 Getrude directory that's in Fat 16 Dot s. You'll
‫notice on line two to two, we allocate memory.
‫However, if either of these fail, we just go to out and we don't feed the memory we allocated.
‫So this is a memory leak.
‫It needs to be fixed.
‫Uh, so what we're going to do is we're going to copy this.
‫Change it to die.
‫Die off.
‫We're going to go to the top here and paste that in and just set it to zero
‫like that or know whichever you prefer, and we're just going to scroll down here.
‫And.
‫For any errors now, we're going to go to air out, so it's going to be like that, OK, go to air out,
‫go to air.
‫We haven't created this label yet, guys.
‫Go to air out, OK?
‫And now down here, we're going to go out and we're just going to say if.
‫The directory.
‫Exists, it is no, then we're going to just go free.
‫And once you've done Kay Freedia, we're just going to go into here and we're going to return rest's
‫OK.
‫And another way you could have done it is to check an air code here if the codes below zero and then
‫you could also have done that and return the response.
‫Either one of those will work fine.
‫So I'll let you take your pick.
‫However this one's OK.
‫So yeah, we have to keep the memory.
‫If there's a problem, we go to air, which will then free the memory and return.
‫OK.
‫So, yeah, that should fix that memory, Nick, let's just go and do a clean bill to the stage.
‫Keep in mind, we're going to run Kumu.
‫And we can see everything still works.
‫So that's all good guys.
‫That's no problem.
‫We've now fixed another leak.
‫Thanks for watching.