Note: jack_free() is a public function provided by the jack API, so (re)using the same function name is not a good idea!