- or download this
#!/usr/bin/perl
use strict;
...
# access invalid memory.
my $whats_his_name = get_artist_name_from_cd($johnny_houseburner_cd);
print STDERR "What was that guy's name again? $whats_his_name?\n";
- or download this
$ perl cd_artist.plx
Artist::DESTROY called.
...
CD::DESTROY called.
Bus error
$
- or download this
my $copy = $artist;
$artist = new_artist("FunThree");
- or download this
typedef struct CD {
...
+ SvREFCNT_dec(cd->artist_ref);
Safefree(cd);
}
- or download this
/* Yecch. */
...
SvREFCNT_dec(obj->bar->perlobj);
Safefree(obj);
}