685 |
|
rsrc->info = NULL; rsrc->mapped = NULL; rsrc->mtx = NULL; |
686 |
|
return(1); |
687 |
|
} |
688 |
+ |
#ifdef MAP_FILE /* just matrix data -- leave metadata */ |
689 |
|
if (rdst->mapped) |
690 |
< |
return(0); /* XXX can't handle this case */ |
691 |
< |
/* just matrix data -- leave metadata */ |
692 |
< |
if (rdst->mtx) free(rdst->mtx); |
690 |
> |
munmap(rdst->mapped, mapped_size(rdst)); |
691 |
> |
else |
692 |
> |
#endif |
693 |
> |
if (rdst->mtx) |
694 |
> |
free(rdst->mtx); |
695 |
> |
rdst->mapped = rsrc->mapped; |
696 |
|
rdst->mtx = rsrc->mtx; |
697 |
< |
rsrc->mtx = NULL; |
697 |
> |
rsrc->mapped = NULL; rsrc->mtx = NULL; |
698 |
|
return(1); |
699 |
|
} |
700 |
|
|