What does the command afplay --leaks do?

The man page states that it performs leak analyzes. What are leak analyzes, please? When I ran this command with an audio file, no event occurred.

  • 3
    --leaks analyzes memory leaks.
    – IconDaemon
    Feb 18, 2021 at 19:03
  • Now I understand it. Thank you
    – Lano
    Feb 18, 2021 at 19:13

1 Answer 1


--leaks analyzes memory leaks. Running strings /usr/bin/afplay strongly indicates that

leaks -nocontext %d | tee /tmp/leaks_P%d.log
x=`cat /tmp/leaks_P%d.log |grep -i Leak: | wc -l`
exit $x

is actually run for this. man leaks will give a lot of additional details about what that command does.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .