[daemon-fix] fixed getting uid and pid when transport is not kdbus
[platform/upstream/dbus.git] / test / spawn-test.c
index 991a5e8..e6513fa 100644 (file)
@@ -1,9 +1,8 @@
+#include <config.h>
 #include <dbus/dbus.h>
 
-#define DBUS_COMPILATION /* cheat and use dbus-sysdeps */
 #include <dbus/dbus-sysdeps.h>
 #include <dbus/dbus-spawn.h>
-#undef DBUS_COMPILATION
 #include <stdio.h>
 
 static void
@@ -36,6 +35,8 @@ main (int argc, char **argv)
       fprintf (stderr, "Could not launch application: \"%s\"\n",
               error.message);
     }
-  
+
+  dbus_free(argv_copy);
   return 0;
 }