Skip to content

Commit 9315c9e

Browse files
committed
DPL: fix leak on failure to parse messages
We have bigger problems if that is the case, yet, better safe than sorry.
1 parent f83ef77 commit 9315c9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Framework/Core/src/runDataProcessing.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ void websocket_callback(uv_stream_t* stream, ssize_t nread, const uv_buf_t* buf)
491491
} catch (WSError& e) {
492492
LOG(error) << "Error while parsing request: " << e.message;
493493
handler->error(e.code, e.message.c_str());
494+
free(buf->base);
494495
}
495496
}
496497

0 commit comments

Comments
 (0)