Skip to content

Commit

Permalink
Free dictionary file names when we're done with them
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
  • Loading branch information
jdieter committed Sep 21, 2018
1 parent 81970bb commit 9e7c830
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/createrepo_c.c
Expand Up @@ -897,6 +897,7 @@ main(int argc, char **argv)
exit(EXIT_FAILURE);
}
g_free(pri_dict);
g_free(pri_dict_file);

fil_zck_stat = cr_contentstat_new(cmd_options->repomd_checksum_type, NULL);
fil_cr_zck = cr_xmlfile_sopen_filelists(fil_zck_filename,
Expand Down Expand Up @@ -924,6 +925,7 @@ main(int argc, char **argv)
exit(EXIT_FAILURE);
}
g_free(fil_dict);
g_free(fil_dict_file);

oth_zck_stat = cr_contentstat_new(cmd_options->repomd_checksum_type, NULL);
oth_cr_zck = cr_xmlfile_sopen_other(oth_zck_filename,
Expand Down Expand Up @@ -953,6 +955,7 @@ main(int argc, char **argv)
exit(EXIT_FAILURE);
}
g_free(oth_dict);
g_free(oth_dict_file);

// Set number of packages
g_debug("Setting number of packages");
Expand Down

0 comments on commit 9e7c830

Please sign in to comment.