This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a80e93c
)
Fix nasty memory leak in vms.c:Perl_flex_stat_int().
author
Craig A. Berry
<craigberry@mac.com>
Fri, 2 Jul 2010 00:47:34 +0000
(19:47 -0500)
committer
Craig A. Berry
<craigberry@mac.com>
Fri, 2 Jul 2010 00:47:34 +0000
(19:47 -0500)
Thanks to Mark Berryman in
Message-id: <
52BFD39B
-C4BA-4350-AA1F-
C2E7F128EF21
@theberrymans.com>
for the report and the fix.
vms/vms.c
patch
|
blob
|
blame
|
history
diff --git
a/vms/vms.c
b/vms/vms.c
index
a2552d7
..
e98c015
100644
(file)
--- a/
vms/vms.c
+++ b/
vms/vms.c
@@
-12911,6
+12911,8
@@
Perl_flex_stat_int(pTHX_ const char *fspec, Stat_t *statbufp, int lstat_flag)
}
/* If we were successful, leave errno where we found it */
if (retval == 0) RESTORE_ERRNO;
+ PerlMem_free(temp_fspec);
+ PerlMem_free(fileified);
return retval;
} /* end of flex_stat_int() */