Re: [PATCH 1/5] drivermodule: Ignore coverity warning about leaked_storage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/14/13 17:42, John Ferlan wrote:
---
  tests/virdrivermoduletest.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/tests/virdrivermoduletest.c b/tests/virdrivermoduletest.c
index de8cf70..bbceb96 100644
--- a/tests/virdrivermoduletest.c
+++ b/tests/virdrivermoduletest.c
@@ -39,10 +39,12 @@ static int testDriverModule(const void *args)
  {
      const struct testDriverData *data = args;

+    /* coverity[leaked_storage] */

I presume the leaked storage is from the one shot initializers.

      if (data->dep1 &&
          !virDriverLoadModule(data->dep1))
          return -1;

+    /* coverity[leaked_storage] */
      if (!virDriverLoadModule(data->name))
          return -1;



ACK.

Peter

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]