Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
free outbuf on error
  • Loading branch information
aisk committed May 25, 2026
commit f1c5782e4e049db8473e8e8f4875b5816b0c362e
2 changes: 2 additions & 0 deletions Modules/timemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,8 @@ time_strftime1(time_char **outbuf, size_t *bufsize,
time_char *tmp = (time_char *)PyMem_Realloc(*outbuf,
*bufsize*sizeof(time_char));
if (tmp == NULL) {
Comment thread
aisk marked this conversation as resolved.
PyMem_Free(*outbuf);
*outbuf = NULL;
PyErr_NoMemory();
return NULL;
}
Expand Down
Loading