110 |
default: |
default: |
111 |
break; |
break; |
112 |
} |
} |
113 |
memp_freep(MEMP_TCPIP_MSG, msg); |
memp_free(MEMP_TCPIP_MSG, msg); |
114 |
} |
} |
115 |
} |
} |
116 |
/*-----------------------------------------------------------------------------------*/ |
/*-----------------------------------------------------------------------------------*/ |
119 |
{ |
{ |
120 |
struct tcpip_msg *msg; |
struct tcpip_msg *msg; |
121 |
|
|
122 |
msg = memp_mallocp(MEMP_TCPIP_MSG); |
msg = memp_malloc(MEMP_TCPIP_MSG); |
123 |
if (msg == NULL) { |
if (msg == NULL) { |
124 |
pbuf_free(p); |
pbuf_free(p); |
125 |
return ERR_MEM; |
return ERR_MEM; |
137 |
{ |
{ |
138 |
struct tcpip_msg *msg; |
struct tcpip_msg *msg; |
139 |
|
|
140 |
msg = memp_mallocp(MEMP_TCPIP_MSG); |
msg = memp_malloc(MEMP_TCPIP_MSG); |
141 |
if (msg == NULL) { |
if (msg == NULL) { |
142 |
return ERR_MEM; |
return ERR_MEM; |
143 |
} |
} |
153 |
tcpip_apimsg(struct api_msg *apimsg) |
tcpip_apimsg(struct api_msg *apimsg) |
154 |
{ |
{ |
155 |
struct tcpip_msg *msg; |
struct tcpip_msg *msg; |
156 |
msg = memp_mallocp(MEMP_TCPIP_MSG); |
msg = memp_malloc(MEMP_TCPIP_MSG); |
157 |
if (msg == NULL) { |
if (msg == NULL) { |
158 |
memp_free(MEMP_API_MSG, apimsg); |
memp_free(MEMP_API_MSG, apimsg); |
159 |
return; |
return; |