Skip to content

Commit 9f28953

Browse files
committed
patch 7.4.2257
Problem: Coverity complains about not checking for NULL. Solution: Check for out of memory.
1 parent db249f2 commit 9f28953

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/if_py_both.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3009,9 +3009,9 @@ FunctionAttr(FunctionObject *self, char *name)
30093009
return PyString_FromString((char *)(self->name));
30103010
else if (strcmp(name, "args") == 0)
30113011
{
3012-
if (self->argv == NULL)
3012+
if (self->argv == NULL || (list = list_alloc()) == NULL)
30133013
return AlwaysNone(NULL);
3014-
list = list_alloc();
3014+
30153015
for (i = 0; i < self->argc; ++i)
30163016
list_append_tv(list, &self->argv[i]);
30173017
return NEW_LIST(list);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2257,
766768
/**/
767769
2256,
768770
/**/

0 commit comments

Comments
 (0)