HSA: memory leak is fixed for asprintf operations.