Skip to content

Commit

Permalink
[compress] make sure to unload resources before re-init the new config
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Sep 14, 2017
1 parent eee77df commit 3902348
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libknet/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1405,6 +1405,7 @@ int knet_handle_compress(knet_handle_t knet_h, struct knet_handle_compress_cfg *
return -1;
}

compress_fini(knet_h);
err = compress_cfg(knet_h, knet_handle_compress_cfg);
savederrno = errno;

Expand Down

0 comments on commit 3902348

Please sign in to comment.