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);
|
outgoing = malloc(blen);
|
||||||
if (outgoing == NULL) {
|
if (outgoing == NULL) {
|
||||||
free(outgoing);
|
free(incoming);
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"%s: malloc() failed.\n",
|
"%s: malloc() failed.\n",
|
||||||
exec_name);
|
exec_name);
|
||||||
|
|
Loading…
Reference in New Issue