From e9212301d3b9267e1a146df47b2107485173436a Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 1 Dec 2011 18:57:05 +0100 Subject: [PATCH] [tools] fix lasso_sha1 to return a glib allocated string --- lasso/xml/tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c index e5de3b78..63873453 100644 --- a/lasso/xml/tools.c +++ b/lasso/xml/tools.c @@ -909,7 +909,7 @@ lasso_sha1(const char *str) if (str == NULL) return NULL; - md = xmlMalloc(20); + md = g_malloc(20); return (char*)SHA1((unsigned char*)str, strlen(str), md); }