diff options
author | Saarett <[email protected]> | 2017-02-05 12:44:56 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2017-02-05 12:44:56 +0200 |
commit | 03b30863279b111fb6b9f154a9bdaa831114adfb (patch) | |
tree | 75cf8472cb5461908c7d92ced09d42f9827008fb /init.c | |
parent | 59cdd6c63b89395d64ec9550181af5ed569b8466 (diff) | |
download | xv6-labs-03b30863279b111fb6b9f154a9bdaa831114adfb.tar.gz xv6-labs-03b30863279b111fb6b9f154a9bdaa831114adfb.tar.bz2 xv6-labs-03b30863279b111fb6b9f154a9bdaa831114adfb.zip |
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.
Diffstat (limited to 'init.c')
0 files changed, 0 insertions, 0 deletions