#!/bin/sh -ue

if [ -f '/opt/kaspersky/kesl/lib32/libjemalloc.so' ]; then
    export LD_PRELOAD='/opt/kaspersky/kesl/lib32/libjemalloc.so'":${LD_PRELOAD:-}"
fi

exec '/opt/kaspersky/kesl/libexec/kesl' "$@"
