1
1
/* ****************************************************************************
2
2
3
- Copyright (c) 2000, 2014 , Oracle and/or its affiliates. All Rights Reserved.
3
+ Copyright (c) 2000, 2015 , Oracle and/or its affiliates. All Rights Reserved.
4
4
Copyright (c) 2008, 2009 Google Inc.
5
5
Copyright (c) 2009, Percona Inc.
6
6
Copyright (c) 2012, Facebook Inc.
@@ -17346,6 +17346,7 @@ ib_senderrf(
17346
17346
str = static_cast <char *>(malloc (size));
17347
17347
}
17348
17348
if (str == NULL ) {
17349
+ va_end (args);
17349
17350
return ; /* Watch for Out-Of-Memory */
17350
17351
}
17351
17352
str[size - 1 ] = 0x0 ;
@@ -17354,12 +17355,14 @@ ib_senderrf(
17354
17355
int ret;
17355
17356
ret = vasprintf (&str, format, args);
17356
17357
if (ret < 0 ) {
17358
+ va_end (args);
17357
17359
return ; /* Watch for Out-Of-Memory */
17358
17360
}
17359
17361
#else
17360
17362
/* Use a fixed length string. */
17361
17363
str = static_cast <char *>(malloc (BUFSIZ));
17362
17364
if (str == NULL ) {
17365
+ va_end (args);
17363
17366
return ; /* Watch for Out-Of-Memory */
17364
17367
}
17365
17368
my_vsnprintf (str, BUFSIZ, format, args);
@@ -17433,6 +17436,7 @@ ib_errf(
17433
17436
str = static_cast <char *>(malloc (size));
17434
17437
}
17435
17438
if (str == NULL ) {
17439
+ va_end (args);
17436
17440
return ; /* Watch for Out-Of-Memory */
17437
17441
}
17438
17442
str[size - 1 ] = 0x0 ;
@@ -17441,12 +17445,14 @@ ib_errf(
17441
17445
int ret;
17442
17446
ret = vasprintf (&str, format, args);
17443
17447
if (ret < 0 ) {
17448
+ va_end (args);
17444
17449
return ; /* Watch for Out-Of-Memory */
17445
17450
}
17446
17451
#else
17447
17452
/* Use a fixed length string. */
17448
17453
str = static_cast <char *>(malloc (BUFSIZ));
17449
17454
if (str == NULL ) {
17455
+ va_end (args);
17450
17456
return ; /* Watch for Out-Of-Memory */
17451
17457
}
17452
17458
my_vsnprintf (str, BUFSIZ, format, args);
0 commit comments