summaryrefslogtreecommitdiff
path: root/print-esp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-03-12 15:34:52 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-03-12 15:44:10 +0100
commitfa196ecfbe6c715ab37e86ade670d8a552540b7a (patch)
tree0559e6e12f3c209e23addf415afd1f5419c359b2 /print-esp.c
parent2b56cf092388290689ec6b4dd7f1790b01eea289 (diff)
downloadtcpdump-fa196ecfbe6c715ab37e86ade670d8a552540b7a.tar.gz
Add a comment on a memory allocation we cannot free
Diffstat (limited to 'print-esp.c')
-rw-r--r--print-esp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/print-esp.c b/print-esp.c
index 094b9f7f..31630100 100644
--- a/print-esp.c
+++ b/print-esp.c
@@ -265,6 +265,7 @@ static void esp_print_addsa(netdissect_options *ndo,
struct sa_list *nsa;
+ /* malloc() return used in a 'struct sa_list': do not free() */
nsa = (struct sa_list *)malloc(sizeof(struct sa_list));
if (nsa == NULL)
(*ndo->ndo_error)(ndo, S_ERR_ND_MEM_ALLOC,