mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00
Fix incorrect use of realloc()
Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
This commit is contained in:
@ -137,7 +137,7 @@ get_cmd_line_args (pid_t pid)
|
|||||||
{
|
{
|
||||||
allocated += 512;
|
allocated += 512;
|
||||||
char *tmp = realloc (buffer, allocated);
|
char *tmp = realloc (buffer, allocated);
|
||||||
if (buffer == NULL)
|
if (tmp == NULL)
|
||||||
{
|
{
|
||||||
free (buffer);
|
free (buffer);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Reference in New Issue
Block a user