Browse Source

modules/pua Fixed memory leaks in limbxml2
(cherry picked from commit 68295d124ee2d36f3e8d31eac5a76c4d7c89f5b8)

Anca Vamanu 13 years ago
parent
commit
77d3b19501
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules_k/pua/send_publish.c

+ 2 - 2
modules_k/pua/send_publish.c

@@ -571,7 +571,7 @@ send_publish:
 	if( body && ret_code)
 	{
 		if(body->s)
-			free(body->s);
+			xmlFree(body->s);
 		pkg_free(body);
 	}	
 	if(etag.s)
@@ -595,7 +595,7 @@ error:
 	if(body&& ret_code)
 	{
 		if(body->s)
-			free(body->s);
+			xmlFree(body->s);
 		pkg_free(body);
 	}	
 	if(str_hdr)