# [LIBCOS_COS_MALLOC_FAILED](https://apps.juniper.net/syslog-explorer/?msg=LIBCOS_COS_MALLOC_FAILED)

## SYSLOG Details
- **Message**: <variable>function-name</variable>:<variable>line-number</variable> : FAILED to allocate memory for <variable>cos-attribute</variable>
- **Help**: Libcos encountered an error while allocating memory
- **Description**: The class-of-service(CoS) library(Libcos) could not dynamically allocate memory for the indicated reason.
- **Type**: SNO: Should Not Occur
- **Severity**: critical
- **Cause**: A software bug caused a memory leak or the Routing Engine did not have sufficient memory.
- **Action**: Contact your technical support representative.
- **Attributes**: function-name
line-number
cos-attribute
- **Facility**: ANY

## Found this message in the following releases:
- [Junos OS 24.2R1](https://apps.juniper.net/syslog-explorer/?msg=LIBCOS_COS_MALLOC_FAILED&sw=Junos%20OS&rel=24.2R1)
- [Junos OS 23.4R1](https://apps.juniper.net/syslog-explorer/?msg=LIBCOS_COS_MALLOC_FAILED&sw=Junos%20OS&rel=23.4R1)