fixes #575 Memory leak in inproc (bind)
diff --git a/src/transports/inproc/binproc.c b/src/transports/inproc/binproc.c
index bc98e3d..5239ce7 100644
--- a/src/transports/inproc/binproc.c
+++ b/src/transports/inproc/binproc.c
@@ -229,6 +229,17 @@
             }
 
         case NN_BINPROC_SRC_SINPROC:
+            sinproc = srcptr;
+            switch (type) {
+            case NN_SINPROC_STOPPED:
+                nn_list_erase (&binproc->sinprocs, &sinproc->item);
+                nn_sinproc_term (sinproc);
+                nn_free (sinproc);
+                return;
+            case NN_SINPROC_DISCONNECT:
+                nn_sinproc_stop (sinproc);
+                return;
+            }
             return;
 
         default: