Enji Cooper a393b6c82f syslogd: fix memory leaks in main(..) and allowaddr(..)
- main(..): free memory assigned to fdsr before calling die(..).
- allowaddr(..): free memory assigned to ap before returning from the
  function early. Add a `err` goto label to reduce freeaddrinfo/free(ap)
  logic duplication.

MFC after:	1 week
X-MFC notes:	some of this is dependent on refactoring not MFCed
Reported by:	clang static analyzer, Coverity
CID:		1367750 (ap leakage in allowaddr(..))
Submitted by:	Tom Rix <trix@juniper.net>
Reviewed by:	ngie
Sponsored by:	Dell EMC Isilon, Juniper
Differential Revision:	D10004
2017-03-15 18:15:30 +00:00
..
2015-06-13 19:20:56 +00:00
2017-02-28 23:42:47 +00:00
2017-03-10 06:25:54 +00:00
2015-06-13 19:20:56 +00:00
2017-03-04 20:35:34 +00:00
2016-01-21 18:41:55 +00:00
2017-02-28 23:42:47 +00:00
2017-03-11 04:00:27 +00:00
2017-03-12 03:43:28 +00:00
2017-03-10 04:24:21 +00:00
2015-08-01 10:40:17 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2015-06-13 19:20:56 +00:00
2017-02-28 23:42:47 +00:00
2017-03-11 04:01:35 +00:00
2015-06-13 19:20:56 +00:00
2017-01-04 00:39:06 +00:00
2015-06-13 19:20:56 +00:00
2017-02-28 23:42:47 +00:00
2016-09-21 10:58:58 +00:00
2015-06-13 19:20:56 +00:00
2017-01-28 02:22:15 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2017-03-09 16:22:21 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-12-02 11:30:21 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2015-06-13 19:20:56 +00:00
2017-03-11 04:03:13 +00:00
2016-12-26 19:27:12 +00:00
2017-02-28 23:42:47 +00:00
2017-01-28 02:22:15 +00:00
2017-02-10 19:17:10 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2017-03-15 18:14:54 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-11-08 23:59:41 +00:00
2017-02-28 23:42:47 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2017-02-28 23:42:47 +00:00
2017-03-11 00:11:20 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-01 04:12:24 +00:00
2017-03-01 04:13:31 +00:00
2015-06-13 19:20:56 +00:00
2017-02-28 23:42:47 +00:00
2015-06-13 19:20:56 +00:00
2017-02-28 23:42:47 +00:00
2016-09-30 20:35:12 +00:00
2017-02-28 23:42:47 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2017-02-28 23:42:47 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2017-02-28 23:42:47 +00:00
2015-08-12 10:34:05 +00:00
2015-09-17 05:06:34 +00:00
2015-09-03 07:18:52 +00:00
2015-06-13 19:20:56 +00:00
2017-01-28 02:22:15 +00:00