Commit 3684858d authored by Guillaume Quintard's avatar Guillaume Quintard

No check needed, free(NULL) is a nop

parent 6b85eeae
......@@ -187,8 +187,7 @@ VCLI_ReadResult(int fd, unsigned *status, char **ptr, double tmo)
return (0);
} while(0);
if (p != NULL)
free(p);
free(p);
*status = CLIS_COMMS;
if (ptr != NULL)
*ptr = strdup(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment