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