X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fptlrpc%2Fevents.c;h=2d0f516c21bc6bac0bdf490bf28c5000c63ab9a6;hb=beac5e36214a473677b865c28981f84ef638d8dd;hp=3c4ad5a3a5c71dd5595b67831ef82997954fb12f;hpb=421df7c60544c377e52892bace37c4d4b3835091;p=fs%2Flustre-release.git diff --git a/lustre/ptlrpc/events.c b/lustre/ptlrpc/events.c index 3c4ad5a..2d0f516 100644 --- a/lustre/ptlrpc/events.c +++ b/lustre/ptlrpc/events.c @@ -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; }