diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | dbus/dbus-auth.c | 3 | ||||
-rw-r--r-- | dbus/dbus-keyring.c | 5 | ||||
-rw-r--r-- | dbus/dbus-md5.c | 2 | ||||
-rw-r--r-- | dbus/dbus-sha.c | 2 |
5 files changed, 21 insertions, 0 deletions
@@ -1,5 +1,14 @@ 2003-03-05 Anders Carlsson <andersca@codefactory.se> + * dbus/dbus-auth.c: (send_rejected), (process_test_subdir): + * dbus/dbus-keyring.c: (_dbus_keyring_new_homedir), + (_dbus_keyring_test): + * dbus/dbus-md5.c: (_dbus_md5_compute): + * dbus/dbus-sha.c: (_dbus_sha_compute): + Plug memory leaks. + +2003-03-05 Anders Carlsson <andersca@codefactory.se> + * README: Add some things. 2003-03-04 Anders Carlsson <andersca@codefactory.se> diff --git a/dbus/dbus-auth.c b/dbus/dbus-auth.c index c4e1c5e8..f078136c 100644 --- a/dbus/dbus-auth.c +++ b/dbus/dbus-auth.c @@ -617,6 +617,8 @@ send_rejected (DBusAuth *auth) _dbus_assert (DBUS_AUTH_IS_SERVER (auth)); server_auth = DBUS_AUTH_SERVER (auth); server_auth->failures += 1; + + _dbus_string_free (&command); return TRUE; @@ -1674,6 +1676,7 @@ process_test_subdir (const DBusString *test_base_dir, _dbus_string_get_const_data (&filename, &filename_c); _dbus_verbose ("Skipping non-.auth-script file %s\n", filename_c); + _dbus_string_free (&full_path); goto next; } diff --git a/dbus/dbus-keyring.c b/dbus/dbus-keyring.c index 2162e296..d4aae2fb 100644 --- a/dbus/dbus-keyring.c +++ b/dbus/dbus-keyring.c @@ -733,6 +733,8 @@ _dbus_keyring_new_homedir (const DBusString *username, &keyring->directory, 0)) goto failed; + _dbus_string_free (&homedir); + if (!_dbus_concat_dir_and_file (&keyring->directory, &dotdir)) goto failed; @@ -1012,6 +1014,9 @@ _dbus_keyring_test (void) } printf (" %d keys in test\n", ring1->n_keys); + + _dbus_keyring_unref (ring1); + _dbus_keyring_unref (ring2); return TRUE; diff --git a/dbus/dbus-md5.c b/dbus/dbus-md5.c index b246b355..82003c0d 100644 --- a/dbus/dbus-md5.c +++ b/dbus/dbus-md5.c @@ -485,6 +485,8 @@ _dbus_md5_compute (const DBusString *data, _dbus_string_get_length (ascii_output))) goto error; + _dbus_string_free (&digest); + return TRUE; error: diff --git a/dbus/dbus-sha.c b/dbus/dbus-sha.c index 2035a475..2f73e363 100644 --- a/dbus/dbus-sha.c +++ b/dbus/dbus-sha.c @@ -499,6 +499,8 @@ _dbus_sha_compute (const DBusString *data, _dbus_string_get_length (ascii_output))) goto error; + _dbus_string_free (&digest); + return TRUE; error: |