diff options
| author | liuxueli <[email protected]> | 2020-06-02 10:40:40 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2020-06-02 10:40:40 +0800 |
| commit | a58a7597a747d2aaf273b39d8b85f7a4014ff06e (patch) | |
| tree | 6993f480f595e59295485acf89e0345736ad5bb5 | |
| parent | 1456eff40c4eec1241561601e6acabab4e8a1dd5 (diff) | |
修复内存泄漏的BUGv1.2.4.20.06
| -rw-r--r-- | src/tsg_entry.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index aead829..ffc6e22 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -533,7 +533,7 @@ static int identify_application_protocol(struct streaminfo *a_stream, struct _id identify_info->proto = PROTO_UNKONWN; //http - char *host = NULL; + char *host=NULL; ret=http_host_parser((char *)a_stream->ptcpdetail->pdata, (unsigned int)a_stream->ptcpdetail->datalen, DIR_C2S, &host); if(ret>=0) { @@ -632,6 +632,7 @@ static int identify_application_protocol(struct streaminfo *a_stream, struct _id } } + quic_release_stream(a_stream, (void **)&_context, a_stream->threadnum); return ret; } |
