]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Tweak METAPLUGIN::perform_read_metadata_info() function
authorEric Bollengier <eric@baculasystems.com>
Wed, 15 Sep 2021 10:17:45 +0000 (12:17 +0200)
committerEric Bollengier <eric@baculasystems.com>
Wed, 6 Sep 2023 07:49:00 +0000 (09:49 +0200)
bacula/src/plugins/fd/pluginlib/metaplugin.cpp

index 269e11694d559ec421fc0956c3f8024265a02aeb..7cfd27e5940b51e33a57cead3fd118cbf1281104 100644 (file)
@@ -1567,10 +1567,10 @@ bRC METAPLUGIN::perform_read_metadata_info(bpContext *ctx, metadata_type type, s
 
    // Bacula API for metadata requires that a plugin
    // handle metadata buffer allocation
-   POOLMEM *ptr = (POOLMEM *)bmalloc(len);
+   char *ptr = (char *)bmalloc(len);
    memcpy(ptr, data.addr(), len);
 
-   // add it to the list for reference to not lot it
+   // add it to the list for reference to not loose it
    metadatas_list.append(ptr);
    metadatas.add_packet(type, len, ptr);
    sp->plug_meta = &metadatas;