Re: [patch hail 1/1] Plug leak in hstor_parse_key

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

 



On 10/14/2011 01:34 PM, Pete Zaitcev wrote:
Signed-off-by: Pete Zaitcev<zaitcev@xxxxxxxxxxxxxxxxx>

---
  lib/hstor.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/hstor.c b/lib/hstor.c
index cb9c4da..5ce9b76 100644
--- a/lib/hstor.c
+++ b/lib/hstor.c
@@ -761,7 +761,7 @@ void hstor_free_keylist(struct hstor_keylist *keylist)
  static void hstor_parse_key(xmlDocPtr doc, xmlNode *node,
  			  struct hstor_keylist *keylist)
  {
-	struct hstor_object *obj = calloc(1, sizeof(*obj));
+	struct hstor_object *obj;
  	xmlChar *xs;

good catch... applied



--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux