瀏覽代碼

utils: convert to memory logging helper

Pantelis Kolatsis 2 年之前
父節點
當前提交
89927295f2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/modules/utils/xcap_auth.c

+ 2 - 2
src/modules/utils/xcap_auth.c

@@ -416,12 +416,12 @@ int get_rules_doc(str* user, str* domain, int type, str** rules_doc)
 
 	doc= (str*)pkg_malloc(sizeof(str));
 	if (doc== NULL) {
-		ERR_MEM(PKG_MEM_STR);
+		PKG_MEM_ERROR;
 	}
 	doc->s= (char*)pkg_malloc(body.len* sizeof(char));
 	if (doc->s== NULL) {
 		pkg_free(doc);
-		ERR_MEM(PKG_MEM_STR);
+		PKG_MEM_ERROR;
 	}
 	memcpy(doc->s, body.s, body.len);
 	doc->len= body.len;