Skip to content

Commit

Permalink
Merge pull request #835 from waynieack/Harmon
Browse files Browse the repository at this point in the history
Fixed memory leak for TCP write socket for Harmon Module
  • Loading branch information
hplato committed Feb 2, 2022
2 parents 61d46c8 + eeb0704 commit 8a98303
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/HARMON.pm
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ sub check_for_data {
}

if ( $connecttype eq 'tcp' ) {
$main::Socket_Ports{ "$instance" . '_sender' }{data} = undef;
if ( $Socket_Items{$instance}{'socket'}->active ) {
$NewCmd = uc( unpack( 'H*', ( $Socket_Items{$instance}{'socket'}->said ) ) );
}
Expand Down

0 comments on commit 8a98303

Please sign in to comment.