diff -ur openslp-dfsg-2.0.0/common/slp_xmalloc.c openslp-dfsg-2.0.0-slp_xfree-debug-warnings/common/slp_xmalloc.c
--- openslp-dfsg-2.0.0/common/slp_xmalloc.c	2017-07-21 09:01:06.000000000 +0000
+++ openslp-dfsg-2.0.0-slp_xfree-debug-warnings/common/slp_xmalloc.c	2017-08-07 13:46:09.472541000 +0000
@@ -262,6 +262,11 @@
 {
    xallocation_t * x;
 
+   if (!ptr)
+   {
+      return;
+   }
+
    x =_xmalloc_find(ptr);
    if (x == 0)
    {
