File: 18docfree.t

package info (click to toggle)
libxml-libxml-perl 2.0116%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 2,420 kB
  • sloc: perl: 6,139; ansic: 3,752; xml: 182; sh: 64; makefile: 8
file content (13 lines) | stat: -rw-r--r-- 295 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use warnings;

use Test::More tests => 1;
use XML::LibXML;

{
  my $doc = XML::LibXML::Document->new();
  $doc = XML::LibXML::Document->new();
}
# used to get "Attempt to free unreferenced scalar" here
ok(1, 'docfree Out of scope is OK - no "Attempt to free unreferenced scalar"');