Fix a false positive memdbg warning
authorAndre Heinecke <aheinecke@gnupg.org>
Mon, 18 Mar 2019 13:32:46 +0000 (14:32 +0100)
committerAndre Heinecke <aheinecke@gnupg.org>
Mon, 18 Mar 2019 13:32:46 +0000 (14:32 +0100)
* src/mapihelp.cpp (get_first_attach_mime_tag): Note the
ref on mapitable.

src/mapihelp.cpp

index 57f10fb..ac0652c 100644 (file)
@@ -970,7 +970,8 @@ get_first_attach_mime_tag (LPMESSAGE message)
                  SRCNAME, __func__, hr);
       TRETURN NULL;
     }
-      
+  memdbg_addRef (mapitable);
+
   hr = HrQueryAllRows (mapitable, (LPSPropTagArray)&propAttNum,
                        NULL, NULL, 0, &mapirows);
   if (FAILED (hr))