Skip to content

Commit 5811c58

Browse files
committed
gencode: Add a missing free() in gen_scode()
(cherry picked from commit 869df50)
1 parent d065328 commit 5811c58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gencode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7239,6 +7239,7 @@ gen_scode(compiler_state_t *cstate, const char *name, struct qual q)
72397239
b = gen_gateway(cstate, eaddr, res, proto, dir);
72407240
cstate->ai = NULL;
72417241
freeaddrinfo(res);
7242+
free(eaddr);
72427243
if (b == NULL)
72437244
bpf_error(cstate, "unknown host '%s'", name);
72447245
return b;

0 commit comments

Comments
 (0)