소스 검색

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;