mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 08:15:02 -05:00
[pipe] Fix double free of metadata strings (fixes #724)
This commit is contained in:
parent
bc4b5275f3
commit
9fcc3d2c01
@ -910,6 +910,9 @@ metadata_get(struct input_metadata *metadata, struct input_source *source)
|
||||
|
||||
*metadata = pipe_metadata_parsed;
|
||||
|
||||
// Ownership transferred to caller, null all pointers in the struct
|
||||
memset(&pipe_metadata_parsed, 0, sizeof(struct input_metadata));
|
||||
|
||||
pthread_mutex_unlock(&pipe_metadata_lock);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user