don't leak string list in error case (cherry picked from commit e4f39254976544781f106...
authorFrank Osterfeld <frank@kdab.net>
Wed, 22 Apr 2009 14:26:06 +0000 (15:26 +0100)
committerunknown <Administrator@.(none)>
Mon, 30 Nov 2009 10:09:20 +0000 (11:09 +0100)
bus/dispatch.c

index a69a929c7c8aa970a45b21ace195a2b0989a90ec..9ad494b5dc970fb1e463dea24888f354d90703a9 100644 (file)
@@ -4197,6 +4197,7 @@ check_list_services (BusContext     *context,
   if (!_dbus_string_array_contains ((const char **)services, existent))
     {
       _dbus_warn ("Did not get the expected %s from ListActivatableNames\n", existent);
+      dbus_free_string_array (services);
       return FALSE;
     }