[pipe] Fix double free of metadata strings (fixes #724)

This commit is contained in:
ejurgensen 2019-05-04 23:07:22 +02:00
parent bc4b5275f3
commit 9fcc3d2c01

View File

@ -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;