mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
tests/valgrind.pm: suppress memleaks of NSS_InitContext()
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=745224
This commit is contained in:
parent
7d4ed0b10e
commit
4c385cf896
@ -36,6 +36,7 @@ sub valgrindparse {
|
|||||||
my @o;
|
my @o;
|
||||||
|
|
||||||
my $bt=0;
|
my $bt=0;
|
||||||
|
my $nssinit=0;
|
||||||
|
|
||||||
open(VAL, "<$file");
|
open(VAL, "<$file");
|
||||||
while(<VAL>) {
|
while(<VAL>) {
|
||||||
@ -53,9 +54,14 @@ sub valgrindparse {
|
|||||||
$us++;
|
$us++;
|
||||||
} #else {print "Not our source: $func, $source, $line\n";}
|
} #else {print "Not our source: $func, $source, $line\n";}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# the memory leakage within NSS_InitContext is not a bug of curl
|
||||||
|
if($w =~ /NSS_InitContext/) {
|
||||||
|
$nssinit++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if($us) {
|
if($us and not $nssinit) {
|
||||||
# the stack trace included source details about us
|
# the stack trace included source details about us
|
||||||
|
|
||||||
$error++;
|
$error++;
|
||||||
@ -71,6 +77,7 @@ sub valgrindparse {
|
|||||||
}
|
}
|
||||||
$bt = 0; # no more backtrace
|
$bt = 0; # no more backtrace
|
||||||
$us = 0;
|
$us = 0;
|
||||||
|
$nssinit = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user