From b09b7ca33cbaa7eae4f56b9cd699c8d0283dd754 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sun, 13 Apr 2003 00:10:53 +0000 Subject: 2003-04-12 Havoc Pennington * bus/config-parser.c (bus_config_parser_new): fix a memleak * dbus/dbus-sysdeps.c: change DBusCredentials to use longs for the pid/gid/uid, just for paranoia. * test/break-loader.c (randomly_do_n_things): find a byte containing a type code, and randomly change it to a different type code. --- bus/config-parser.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bus') diff --git a/bus/config-parser.c b/bus/config-parser.c index 780d1757..da5b23f8 100644 --- a/bus/config-parser.c +++ b/bus/config-parser.c @@ -268,6 +268,9 @@ bus_config_parser_new (const DBusString *basedir) if (((parser->policy = bus_policy_new ()) == NULL) || !_dbus_string_copy (basedir, 0, &parser->basedir, 0)) { + if (parser->policy) + bus_policy_unref (parser->policy); + _dbus_string_free (&parser->basedir); dbus_free (parser); return NULL; -- cgit