Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
f44ec5cb
Commit
f44ec5cb
authored
Mar 01, 2013
by
Matthieu Muffato
Browse files
Fixed a memory leak in data_dbc()
parent
a2735bba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/Bio/EnsEMBL/Hive/Process.pm
modules/Bio/EnsEMBL/Hive/Process.pm
+3
-2
No files found.
modules/Bio/EnsEMBL/Hive/Process.pm
View file @
f44ec5cb
...
...
@@ -379,8 +379,9 @@ sub dbc {
sub
data_dbc
{
my
$self
=
shift
@_
;
my
$given_db_conn
=
shift
@
_
||
$self
->
param
('
db_conn
')
||
$self
;
my
$given_signature
=
stringify
(
$given_db_conn
);
my
$given_db_conn
=
shift
@
_
||
(
$self
->
param_is_defined
('
db_conn
')
?
$self
->
param
('
db_conn
')
:
$self
);
my
$given_ref
=
ref
(
$given_db_conn
);
my
$given_signature
=
(
$given_ref
eq
'
ARRAY
'
or
$given_ref
eq
'
HASH
')
?
stringify
(
$given_db_conn
)
:
"
$given_db_conn
";
if
(
!
$self
->
{'
_cached_db_signature
'}
or
(
$self
->
{'
_cached_db_signature
'}
ne
$given_signature
)
)
{
$self
->
{'
_cached_db_signature
'}
=
$given_signature
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment