Browse Source

Merge pull request #133 from gicmo/lib_bus_leak

lib: release acquired bus reference
Alex Smith 5 years ago
parent
commit
001a69f565
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/client_impl.c

+ 1 - 0
lib/client_impl.c

@@ -92,6 +92,7 @@ static int gamemode_request(const char *function, int arg)
 				         strerror(-ret));
 			}
 		}
+		sd_bus_unref(bus);
 	}
 
 	return result;