diff --git a/resource.c b/resource.c index 153b334f..1a620dbf 100644 --- a/resource.c +++ b/resource.c @@ -486,7 +486,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