diff options
Diffstat (limited to 'memanalyze.pl')
-rwxr-xr-x | memanalyze.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/memanalyze.pl b/memanalyze.pl index 48fff8f27..aa8dddb13 100755 --- a/memanalyze.pl +++ b/memanalyze.pl @@ -84,6 +84,11 @@ while(<STDIN>) { $getfile{$1}="$source:$linenum"; $openfile++; } + elsif($function =~ /accept\(\) = (\d*)/) { + $filedes{$1}=1; + $getfile{$1}="$source:$linenum"; + $openfile++; + } elsif($function =~ /sclose\((\d*)\)/) { if($filedes{$1} != 1) { print "Close without open: $line\n"; |