[PATCH] chunkd: fix duplicate stc_object allocation in stc_parse_key()

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

 



At the beginning of stc_parse_key(), st_object is allocated twice for
the same variable.

Signed-off-by: Akinobu Mita <akinobu.mita@xxxxxxxxx>
---
 lib/chunkdc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/chunkdc.c b/lib/chunkdc.c
index 2696a81..67c39eb 100644
--- a/lib/chunkdc.c
+++ b/lib/chunkdc.c
@@ -831,7 +831,7 @@ void stc_free_keylist(struct st_keylist *keylist)
 static void stc_parse_key(xmlDocPtr doc, xmlNode *node,
 			  struct st_keylist *keylist)
 {
-	struct st_object *obj = calloc(1, sizeof(*obj));
+	struct st_object *obj;
 	xmlChar *xs;
 
 	obj = calloc(1, sizeof(*obj));
-- 
1.6.5.5

--
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