#!/bin/sh # instrument soffice with a malloc-based memory allocator. # Requires libsalalloc_malloc.so to be in the LD_LIBRARY_PATH. # Forwards all command line arguments to valgrind. export LD_PRELOAD=libsalalloc_malloc.so valgrind $@