Whamcloud - gitweb
- fixed obd_brw_read bug
[fs/lustre-release.git] / lustre / ptlrpc / events.c
index 3c4ad5a..2d0f516 100644 (file)
@@ -169,6 +169,11 @@ static int bulk_sink_callback(ptl_event_t *ev, void *data)
                 BUG();
         }
 
+        /* FIXME: This should happen unconditionally */
+        if (bulk->b_cb != NULL) {
+                OBD_FREE(bulk, sizeof(*bulk));
+        }
+
         EXIT;
         return 1;
 }