diff options
author | Eric Wong <e@yhbt.net> | 2020-08-22 06:06:23 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-08-23 00:13:59 +0000 |
commit | a279d43a0a9fce97936ebb9facd89662bfcd5a23 (patch) | |
tree | 4ba83f7663ae9038aea992a7aa63059d62ca21e2 /lib/PublicInbox | |
parent | 99404a3bc0ab01b4f10ea698d88642b2ebc932e1 (diff) | |
download | public-inbox-a279d43a0a9fce97936ebb9facd89662bfcd5a23.tar.gz |
Merely assigning `undef' to a scalar does not free the underlying buffer memory of a scalar.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/SearchIdxShard.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchIdxShard.pm b/lib/PublicInbox/SearchIdxShard.pm index 20077e08..75521b43 100644 --- a/lib/PublicInbox/SearchIdxShard.pm +++ b/lib/PublicInbox/SearchIdxShard.pm @@ -97,7 +97,7 @@ sub index_raw { "\n", $$msgref or die "failed to write shard $!\n"; } else { if ($eml) { - $$msgref = undef; + undef $$msgref; } else { # --xapian-only + --sequential-shard: $eml = PublicInbox::Eml->new($msgref); } |