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

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



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


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