Commit 1fd592b5 authored by Leigh B Stoller's avatar Leigh B Stoller

Fix a couple of memory leaks.

parent e93e1f8c
...@@ -312,6 +312,7 @@ sub LookupBySlice($$) ...@@ -312,6 +312,7 @@ sub LookupBySlice($$)
return undef return undef
if (!defined($slice)); if (!defined($slice));
$slice_uuid = $slice->uuid(); $slice_uuid = $slice->uuid();
$slice->Flush();
} }
else { else {
return undef; return undef;
......
...@@ -758,6 +758,7 @@ sub Flush($) ...@@ -758,6 +758,7 @@ sub Flush($)
{ {
my ($self) = @_; my ($self) = @_;
$self->GetCertificate()->Flush();
delete($slices{$self->idx()}); delete($slices{$self->idx()});
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment