]> git.ozlabs.org Git - ppp.git/commit
pppd: Don't free static string
authorPaul Mackerras <paulus@ozlabs.org>
Sun, 1 Dec 2019 03:30:55 +0000 (14:30 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Sun, 1 Dec 2019 03:30:59 +0000 (14:30 +1100)
commit09f695f09e4ff6905388e15b106cd5669b05965e
treeb9f0a0c11722afc472d0dc2f210c606eafb4d091
parent388597eee99beac6e5b7430d24c377169f51bd57
pppd: Don't free static string

Commit fcb076c2 ("Various fixes for errors found by coverity static
analysis (#109)", 2019-05-06) added statements to free the result
returned from get_first_ethernet().  However, the result of
get_first_ethernet() is not dynamically allocated, either on Linux
or Solaris.  Hence this removes the unnecessary (and dangerous)
free() statements.

Fixes: fcb076c2 ("Various fixes for errors found by coverity static analysis (#109)")
Reported-by: Florian Kohnhäuser <florian@kohnhaeuser.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppd/multilink.c