Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
b9e840fc
Commit
b9e840fc
authored
Apr 05, 2011
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another attempt to figure out the memory corruption problem.
parent
2a3080eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
db/Node.pm.in
db/Node.pm.in
+11
-1
No files found.
db/Node.pm.in
View file @
b9e840fc
...
...
@@ -167,8 +167,18 @@ sub Lookup($$)
return
undef
if
(
!$query_result || !$query_result->numrows);
#
#
Make
a
copy
of
the
array
.
Still
fighting
memory
corruption
error
.
#
my
$
hash_orig
=
$
query_result
->
fetchrow_hashref
();
my
$
hash_copy
=
{};
foreach
my
$
key
(
keys
(%{
$
hash_orig
}))
{
my
$
val
=
$
hash_orig
->{$
key
};
$
hash_copy
->{$
key
}
=
$
val
;
}
my
$
self
=
{};
$
self
->{
"DBROW"
}
=
$
query_result
->
fetchrow_hashref
()
;
$
self
->{
"DBROW"
}
=
$
hash_copy
;
$
self
->{
"RSRV"
}
=
undef
;
$
self
->{
"TYPEINFO"
}
=
undef
;
$
self
->{
"ATTRS"
}
=
undef
;
...
...
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