mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
registry: don't free node-date and deref again. Fixes #580579
When writing a cache chunk fails, we were freeing the node and jump to a final cleanup which dereferenced a null pointer. Leve freeing the node to the cleanup code in fail_free_list.
This commit is contained in:
parent
04ece69838
commit
4faa75ab35
1 changed files with 5 additions and 3 deletions
|
@ -790,9 +790,11 @@ fail_free_list:
|
|||
for (walk = to_write; walk; walk = g_list_next (walk)) {
|
||||
GstBinaryChunk *cur = walk->data;
|
||||
|
||||
if (!(cur->flags & GST_BINARY_REGISTRY_FLAG_CONST))
|
||||
g_free (cur->data);
|
||||
g_free (cur);
|
||||
if (cur) {
|
||||
if (!(cur->flags & GST_BINARY_REGISTRY_FLAG_CONST))
|
||||
g_free (cur->data);
|
||||
g_free (cur);
|
||||
}
|
||||
}
|
||||
g_list_free (to_write);
|
||||
|
||||
|
|
Loading…
Reference in a new issue