about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-08-22 06:06:23 +0000
committerEric Wong <e@yhbt.net>2020-08-23 00:13:59 +0000
commita279d43a0a9fce97936ebb9facd89662bfcd5a23 (patch)
tree4ba83f7663ae9038aea992a7aa63059d62ca21e2 /lib/PublicInbox
parent99404a3bc0ab01b4f10ea698d88642b2ebc932e1 (diff)
downloadpublic-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.pm2
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);
                 }