summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--tools/osinfo-install-script.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index 626c17b..79bc980 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -22,6 +22,7 @@ Patches contributed by:
Eric Blake <eblake@redhat.com>
Yuri Chornoivan <yurchor@ukr.net>
Marc-André Lureau <marcandre.lureau@redhat.com>
+ Cole Robinson <crobinso@redhat.com>
...send patches to get your name here...
-- End
diff --git a/tools/osinfo-install-script.c b/tools/osinfo-install-script.c
index 73f1d3d..866a545 100644
--- a/tools/osinfo-install-script.c
+++ b/tools/osinfo-install-script.c
@@ -193,7 +193,7 @@ static gboolean generate_script(OsinfoOs *os)
OsinfoInstallScriptList *scripts = osinfo_os_get_install_script_list(os);
OsinfoInstallScriptList *profile_scripts;
OsinfoFilter *filter;
- GFile *dir;
+ GFile *dir = NULL;
GList *l, *tmp;
gboolean ret = FALSE;
GError *error = NULL;
@@ -242,7 +242,8 @@ static gboolean generate_script(OsinfoOs *os)
g_object_unref(scripts);
g_object_unref(filter);
g_object_unref(profile_scripts);
- g_object_unref(dir);
+ if (dir)
+ g_object_unref(dir);
return ret;
}