diff --git a/daemon/gdm-slave.c b/daemon/gdm-slave.c
index 4532758..4f2a25c 100644
--- a/daemon/gdm-slave.c
+++ b/daemon/gdm-slave.c
@@ -331,6 +331,7 @@ gdm_slave_run_script (GdmSlave   *slave,
 
         g_ptr_array_foreach (env, (GFunc)g_free, NULL);
         g_ptr_array_free (env, TRUE);
+        g_strfreev (argv);
 
         if (! res) {
                 g_warning ("GdmSlave: Unable to run script: %s", error->message);
