Skip to content

Commit

Permalink
bugfix: SrsMetaCache memleak; getaddrinfo use delete.
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglei committed Jan 11, 2022
1 parent 4f45f1e commit 4356ff6
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 186 deletions.
4 changes: 2 additions & 2 deletions trunk/src/app/srs_app_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1526,8 +1526,8 @@ void SrsMetaCache::dispose()
clear();
srs_freep(previous_video);
srs_freep(previous_audio);
srs_freep(previous_video);
srs_freep(previous_audio);
srs_freep(vformat);
srs_freep(aformat);
}

void SrsMetaCache::clear()
Expand Down
Loading

1 comment on commit 4356ff6

@bluestn
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bugfix: SrsMetaCache memleak;
bugfix: use freeaddrinfo instead of delete to release getaddrinfo result.

Please sign in to comment.