The following commit has been merged in the master branch:
commit c0058777f3f82201a155e7ca41bb445621071412
Author: RaphaĆ«l Hertzog <[email protected]>
Date:   Mon Jan 24 16:06:18 2011 +0100

    dpkg-query: Fix short-lived memory leak in --show and --list commands
    
    Sponsored-by: Linaro Limited
    
    Signed-off-by: Guillem Jover <[email protected]>

diff --git a/src/querycmd.c b/src/querycmd.c
index 054435e..2c4c75f 100644
--- a/src/querycmd.c
+++ b/src/querycmd.c
@@ -247,6 +247,8 @@ listpackages(const char *const *argv)
         failures++;
       }
     }
+
+    free(found);
   }
 
   m_output(stdout, _("<standard output>"));
@@ -513,6 +515,8 @@ showpackages(const char *const *argv)
         failures++;
       }
     }
+
+    free(found);
   }
 
   m_output(stdout, _("<standard output>"));

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to