URI: 
       Free compression context on error - dedup - deduplicating backup program
  HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
   DIR LICENSE
       ---
   DIR commit 222099ba0a96a08af154641dbab342243afd1807
   DIR parent 5dfe0aa3dbd6568360c5279fb540d5e4878c30c6
  HTML Author: sin <sin@2f30.org>
       Date:   Thu,  2 May 2019 13:48:11 +0100
       
       Free compression context on error
       
       Diffstat:
         M bcompress.c                         |       7 ++++---
       
       1 file changed, 4 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/bcompress.c b/bcompress.c
       @@ -130,12 +130,13 @@ bcopen(struct bctx *bctx, char *path, int flags, int mode, struct bparam *bpar)
                        return -1;
                }
        
       -        if (strcmp(bpar->calgo, "none") == 0)
       +        if (strcmp(bpar->calgo, "none") == 0) {
                        cctx->type = CDNONETYPE;
       -        else if (strcmp(bpar->calgo, "snappy") == 0)
       +        } else if (strcmp(bpar->calgo, "snappy") == 0) {
                        cctx->type = CDSNAPPYTYPE;
       -        else {
       +        } else {
                        bops->close(bctx);
       +                free(cctx);
                        return -1;
                }
                return 0;