Commit 087c58d4 authored by Andreas Schmidt's avatar Andreas Schmidt

Fix double-free.

parent f0b0e070
Pipeline #945 failed with stages
in 1 minute and 15 seconds
......@@ -324,10 +324,6 @@ int PrrtSocket_close(PrrtSocket *sock_ptr)
check(PrrtCodingParams_destroy(sock_ptr->codingParameters), "Could not destroy coding parameters.")
}
if(sock_ptr->codingParameters) {
check(PrrtCodingParams_destroy(sock_ptr->codingParameters), "Could not destroy coding parameters.")
}
close(sock_ptr->dataSocketFd);
close(sock_ptr->feedbackSocketFd);
debug(DEBUG_SOCKET, "Socket closed.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment