Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No method to free data allocated by mp3dec_load_buf #98

Open
samhattangady opened this issue Jun 29, 2022 · 0 comments
Open

No method to free data allocated by mp3dec_load_buf #98

samhattangady opened this issue Jun 29, 2022 · 0 comments

Comments

@samhattangady
Copy link

mp3dec_load_buf and mp3dec_load_cb allocate some data by making a call to malloc.
There is no method for us to call to free that data.

I wrote a small function for that.

void mp3dec_free(mp3dec_file_info_t *info) 
{
    free((void*)info->buffer);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant