]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add a comment on a memory allocation we cannot free
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 12 Mar 2018 14:34:52 +0000 (15:34 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 12 Mar 2018 14:44:10 +0000 (15:44 +0100)
print-esp.c

index 094b9f7f3b109ca178d44658943149d5e8b05d85..31630100cde1ccebe0677dfa9a1d929730485e25 100644 (file)
@@ -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,