Skip to content

Commit 89e9ddc

Browse files
Sunny BainsSunny Bains
authored andcommitted
Bug#20285744 MISSING VA_END'S
The return was added as part of WL#6205 refactoring.
1 parent 8af8eae commit 89e9ddc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

storage/innobase/handler/ha_innodb.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*****************************************************************************
22
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.
44
Copyright (c) 2008, 2009 Google Inc.
55
Copyright (c) 2009, Percona Inc.
66
Copyright (c) 2012, Facebook Inc.
@@ -17346,6 +17346,7 @@ ib_senderrf(
1734617346
str = static_cast<char*>(malloc(size));
1734717347
}
1734817348
if (str == NULL) {
17349+
va_end(args);
1734917350
return; /* Watch for Out-Of-Memory */
1735017351
}
1735117352
str[size - 1] = 0x0;
@@ -17354,12 +17355,14 @@ ib_senderrf(
1735417355
int ret;
1735517356
ret = vasprintf(&str, format, args);
1735617357
if (ret < 0) {
17358+
va_end(args);
1735717359
return; /* Watch for Out-Of-Memory */
1735817360
}
1735917361
#else
1736017362
/* Use a fixed length string. */
1736117363
str = static_cast<char*>(malloc(BUFSIZ));
1736217364
if (str == NULL) {
17365+
va_end(args);
1736317366
return; /* Watch for Out-Of-Memory */
1736417367
}
1736517368
my_vsnprintf(str, BUFSIZ, format, args);
@@ -17433,6 +17436,7 @@ ib_errf(
1743317436
str = static_cast<char*>(malloc(size));
1743417437
}
1743517438
if (str == NULL) {
17439+
va_end(args);
1743617440
return; /* Watch for Out-Of-Memory */
1743717441
}
1743817442
str[size - 1] = 0x0;
@@ -17441,12 +17445,14 @@ ib_errf(
1744117445
int ret;
1744217446
ret = vasprintf(&str, format, args);
1744317447
if (ret < 0) {
17448+
va_end(args);
1744417449
return; /* Watch for Out-Of-Memory */
1744517450
}
1744617451
#else
1744717452
/* Use a fixed length string. */
1744817453
str = static_cast<char*>(malloc(BUFSIZ));
1744917454
if (str == NULL) {
17455+
va_end(args);
1745017456
return; /* Watch for Out-Of-Memory */
1745117457
}
1745217458
my_vsnprintf(str, BUFSIZ, format, args);

0 commit comments

Comments
 (0)