no leaks or segfaults are possible for the memchecking test

Signed-off-by: Mattias Andrée <maandree@operamail.com>