memory: modify memory function prototypes to find leaks

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>