#ifdef POSIX changed to #ifdef WITH_POSIX (allows attribs to be freed)

This commit is contained in:
Dag Björklund committed 2014-04-04 10:40:08 +03:00
1 parent a3fae3ce3a
commit 234cf4e074
1 file changed
+1 -1
+1 -1
View File
@@ -409,7 +409,7 @@ coap_delete_attr(coap_attr_t *attr) {
coap_free(attr->name.s);
if (attr->flags & COAP_ATTR_FLAGS_RELEASE_VALUE)
coap_free(attr->value.s);
#ifdef POSIX
#ifdef WITH_POSIX
coap_free(attr);
#endif
#ifdef WITH_LWIP