artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec714d5
)
only free in swap_off if allocated.
author
provos
<provos@openbsd.org>
Tue, 21 Mar 2000 17:51:00 +0000
(17:51 +0000)
committer
provos
<provos@openbsd.org>
Tue, 21 Mar 2000 17:51:00 +0000
(17:51 +0000)
sys/uvm/uvm_swap.c
patch
|
blob
|
history
diff --git
a/sys/uvm/uvm_swap.c
b/sys/uvm/uvm_swap.c
index
c00ccc2
..
a96536c
100644
(file)
--- a/
sys/uvm/uvm_swap.c
+++ b/
sys/uvm/uvm_swap.c
@@
-1247,7
+1247,8
@@
swap_off(p, sdp)
return ENODEV;
#ifdef UVM_SWAP_ENCRYPT
- free(sdp->swd_decrypt);
+ if (sdp->swd_decrypt)
+ free(sdp->swd_decrypt);
#endif
extent_free(swapmap, sdp->swd_mapoffset, sdp->swd_mapsize, EX_WAITOK);
name = sdp->swd_ex->ex_name;