]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
make sure to call va_end if we hit an OOM error inside va_start (FDO Bug #12846)
authorJohn (J5) Palmieri <johnp@redhat.com>
Tue, 15 Jan 2008 20:30:19 +0000 (15:30 -0500)
committerJohn (J5) Palmieri <johnp@redhat.com>
Tue, 15 Jan 2008 20:30:19 +0000 (15:30 -0500)
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)

ChangeLog
dbus/dbus-errors.c

index c3d79d1b10dbfd4032780d8d2b190e0edc6f76e7..84faa733faad03d1b5ff4e602e13e2dbefaca158 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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)
+
 2008-01-15  John (J5) Palmieri  <johnp@redhat.com>
        
        * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com>
index 9629c682d008947030f3b8e4e46274cab474e949..6d14ff7af56ff6e2676326f118a664911196f385 100644 (file)
@@ -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);