Memory leak in Linux etherhelpertool.c.
This commit is contained in:
parent
e12789a57e
commit
db897d0d42
|
@ -135,7 +135,7 @@ static int main_loop(int sd, int use_bpf)
|
|||
|
||||
outgoing = malloc(blen);
|
||||
if (outgoing == NULL) {
|
||||
free(outgoing);
|
||||
free(incoming);
|
||||
fprintf(stderr,
|
||||
"%s: malloc() failed.\n",
|
||||
exec_name);
|
||||
|
|
Loading…
Reference in New Issue