]> The Tcpdump Group git mirrors - libpcap/commit
Avoid calling free() on known-null pointer 1073/head
authorDaniel Miller <[email protected]>
Fri, 10 Dec 2021 17:27:30 +0000 (11:27 -0600)
committerDaniel Miller <[email protected]>
Fri, 10 Dec 2021 17:27:30 +0000 (11:27 -0600)
commit51c5231b21b9390dc8926d2a592d61d2bbcee316
tree386f11d2614a2e87334e64f1a86da14e72586d87
parent0cc4639d5d8f81fdd1b0923820ef551140d389e8
Avoid calling free() on known-null pointer

Standards all say free(NULL) is a safe no-op, but since we *know* fp
is NULL here because of the condition above, there's no need to risk it.
optimize.c