]> Devi Nivas Git - cs3210-lab1.git/commit
Free pgdir in setupkvm in case of mappages failure
authorSaarett <Saarett@users.noreply.github.com>
Sun, 5 Feb 2017 10:44:56 +0000 (12:44 +0200)
committerGitHub <noreply@github.com>
Sun, 5 Feb 2017 10:44:56 +0000 (12:44 +0200)
commit03b30863279b111fb6b9f154a9bdaa831114adfb
tree75cf8472cb5461908c7d92ced09d42f9827008fb
parent59cdd6c63b89395d64ec9550181af5ed569b8466
Free pgdir in setupkvm in case of mappages failure

There is a potential memory leak when mappages() fails inside setupkvm().
A call to freevm() is added in this case so as to reclaim the lost mapping pages.
vm.c