memory: fix regression in 2d0afa6b20

Link: https://github.com/GeneAssembly/biosal/issues/707
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>