diff --git a/paddle/go/pserver/lib/client/test/main.c b/paddle/go/pserver/lib/client/test/main.c index 619661d4ac3508faf5f2216ecb50be0ecbd3e154..d71a023a6ad5d053e609a38477641fe878182471 100644 --- a/paddle/go/pserver/lib/client/test/main.c +++ b/paddle/go/pserver/lib/client/test/main.c @@ -51,6 +51,11 @@ int main() { panic(); } + // get parameters again by reusing the allocated parameter buffers. + if (!paddle_get_params(c, names, params, 2)) { + panic(); + } + paddle_release_param(params[0]); paddle_release_param(params[1]);