Skip to content

Commit

Permalink
librpc: fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
moodyhunter committed Dec 22, 2023
1 parent fe7520b commit 56e319d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/librpc/rpc_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,5 +297,6 @@ rpc_result_code_t rpc_do_pb_call(rpc_server_stub_t *stub, u32 funcid, const pb_m
if (!pb_decode(&stream, respm, resp))
return RPC_RESULT_CLIENT_READ_FAILED;

free(result);
return RPC_RESULT_OK;
}

0 comments on commit 56e319d

Please sign in to comment.