mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-12 03:40:39 +03:00
#ifdef POSIX changed to #ifdef WITH_POSIX (allows attribs to be freed)
This commit is contained in:
1 parent
a3fae3ce3a
commit
234cf4e074
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user