summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mqueueunlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/mqueueunlink.c')
-rw-r--r--cpukit/posix/src/mqueueunlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/posix/src/mqueueunlink.c b/cpukit/posix/src/mqueueunlink.c
index 5d3f54db8d..0ad83ba313 100644
--- a/cpukit/posix/src/mqueueunlink.c
+++ b/cpukit/posix/src/mqueueunlink.c
@@ -28,6 +28,7 @@
#include <rtems/system.h>
#include <rtems/score/watchdog.h>
+#include <rtems/score/wkspace.h>
#include <rtems/seterr.h>
#include <rtems/posix/mqueue.h>
#include <rtems/posix/time.h>
@@ -75,6 +76,7 @@ int mq_unlink(
the_mq->linked = FALSE;
+ _Workspace_Free( the_mq->Object.name );
_POSIX_Message_queue_Namespace_remove( the_mq );
_POSIX_Message_queue_Delete( the_mq );