diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2008-01-15 15:30:19 -0500 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2008-01-15 15:30:19 -0500 |
commit | 97872bf72ff327855e2e86a4760348cd2ca03b9e (patch) | |
tree | 07f8c56187e46b6418e78f7c9c28afc3c56dc6d7 /dbus | |
parent | 1b6460201732b21249be1c4fef9722809661a842 (diff) |
make sure to call va_end if we hit an OOM error inside va_start (FDO Bug #12846)
2008-01-15 John (J5) Palmieri <johnp@redhat.com>
* patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com>
* dbus/dbus-errors.c (dbus_set_error): make sure to call va_end if we
hit an OOM error inside va_start (FDO Bug #12846)
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/dbus-errors.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dbus/dbus-errors.c b/dbus/dbus-errors.c index 9629c682..6d14ff7a 100644 --- a/dbus/dbus-errors.c +++ b/dbus/dbus-errors.c @@ -384,6 +384,7 @@ dbus_set_error (DBusError *error, if (!_dbus_string_append_printf_valist (&str, format, args)) { _dbus_string_free (&str); + va_end (args); goto nomem; } va_end (args); |