diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-11 13:05:37 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-11 13:05:37 -0400 |
commit | e5fe5a561e6257a2d1f16a4e9247b20e2c214cd5 (patch) | |
tree | 7da46a7c2b9abeff378a8f2730f0bdb6be28606a /net_ntrip.c | |
parent | ae1b6249f1fdb010252b1f6f543f6db632c3145d (diff) | |
download | gpsd-e5fe5a561e6257a2d1f16a4e9247b20e2c214cd5.tar.gz |
Coverity defect #13: a slow resource leak.
Diffstat (limited to 'net_ntrip.c')
-rw-r--r-- | net_ntrip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net_ntrip.c b/net_ntrip.c index 969d8fe0..83c0841a 100644 --- a/net_ntrip.c +++ b/net_ntrip.c @@ -320,6 +320,7 @@ static int ntrip_stream_req_probe(const struct ntrip_stream_t *stream) if (r != (ssize_t)strlen(buf)) { gpsd_report(LOG_ERROR, "ntrip stream write error %d on fd %d during probe request %zd\n", errno, dsock, r); + close(dsock); return -1; } /* coverity[leaked_handle] This is an intentional allocation */ |