[tools] fix lasso_sha1 to return a glib allocated string

This commit is contained in:
Benjamin Dauvergne 2011-12-01 18:57:05 +01:00
parent 5c2fc3b5dc
commit e9212301d3
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}