aboutsummaryrefslogtreecommitdiff
path: root/sockutils.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-10-17 13:29:19 -0700
committerGuy Harris <guy@alum.mit.edu>2018-10-17 13:29:19 -0700
commit947f2be1e0345bbd6f66f6c945ad51eb7f074e8a (patch)
treecad0d2e5ee7bbf1a8df95db2defd21e8e0134028 /sockutils.c
parentbcbef226ca11662342b5e267e7f12066bcfd60d0 (diff)
Plug some memory leaks.
The optimizer and code emitter (icode_to_fcode()) allocate their own memory that must be cleaned up if an error is thrown, so we can't use bpf_error(), we need to add our own error routines for them. In some cases, just free up the memory before calling bpf_error(). Credit to OSS-Fuzz for finding this issue.
Diffstat (limited to 'sockutils.c')
0 files changed, 0 insertions, 0 deletions