daemon: Squash a memleak of parent commit
Closes: #644 Approved by: jlebon
This commit is contained in:
parent
cc20f32fb7
commit
0f795cae3f
@ -169,7 +169,7 @@ rpmostreed_deployment_generate_variant (OstreeDeployment *deployment,
|
|||||||
g_autoptr(GVariant) commit = NULL;
|
g_autoptr(GVariant) commit = NULL;
|
||||||
g_autoptr(RpmOstreeOrigin) origin = NULL;
|
g_autoptr(RpmOstreeOrigin) origin = NULL;
|
||||||
g_autofree gchar *id = NULL;
|
g_autofree gchar *id = NULL;
|
||||||
const char *base_checksum;
|
g_autofree char *base_checksum = NULL;
|
||||||
|
|
||||||
GVariant *sigs = NULL; /* floating variant */
|
GVariant *sigs = NULL; /* floating variant */
|
||||||
|
|
||||||
@ -212,7 +212,7 @@ rpmostreed_deployment_generate_variant (OstreeDeployment *deployment,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
base_checksum = csum;
|
base_checksum = g_strdup (csum);
|
||||||
}
|
}
|
||||||
sigs = rpmostreed_deployment_gpg_results (repo, refspec, base_checksum, &gpg_enabled);
|
sigs = rpmostreed_deployment_gpg_results (repo, refspec, base_checksum, &gpg_enabled);
|
||||||
variant_add_commit_details (&dict, NULL, commit);
|
variant_add_commit_details (&dict, NULL, commit);
|
||||||
|
Loading…
Reference in New Issue
Block a user