Commit 7788d2d7 authored by Miloslav Trmač's avatar Miloslav Trmač Committed by Ray Strode

Fix a memory leak on an error path of lookup_asv (twice)

https://bugs.freedesktop.org/show_bug.cgi?id=99741Signed-off-by: default avatarMiloslav Trmač <mitr@redhat.com>
parent fd6b3a5d
......@@ -266,6 +266,7 @@ lookup_asv (GVariant *dict,
g_variant_get_type_string (value),
type_string);
g_free (type_string);
g_variant_unref (value);
goto out;
}
ret = value;
......
......@@ -362,6 +362,7 @@ lookup_asv (GVariant *dict,
g_variant_get_type_string (value),
type_string);
g_free (type_string);
g_variant_unref (value);
goto out;
}
ret = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment