[BACK]Return to uploader.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rsync

Diff for /src/usr.bin/rsync/uploader.c between version 1.26 and 1.27

version 1.26, 2021/05/17 11:49:01 version 1.27, 2021/05/17 12:11:05
Line 905 
Line 905 
                         ERR("malloc");                          ERR("malloc");
                         close(*fileinfd);                          close(*fileinfd);
                         *fileinfd = -1;                          *fileinfd = -1;
                           free(blk.blks);
                         return -1;                          return -1;
                 }                  }
   
Line 917 
Line 918 
                                 close(*fileinfd);                                  close(*fileinfd);
                                 *fileinfd = -1;                                  *fileinfd = -1;
                                 free(mbuf);                                  free(mbuf);
                                   free(blk.blks);
                                 return -1;                                  return -1;
                         }                          }
                         init_blk(&blk.blks[i], &blk, offs, i, mbuf, sess);                          init_blk(&blk.blks[i], &blk, offs, i, mbuf, sess);
Line 959 
Line 961 
         if (u->bufsz > u->bufmax) {          if (u->bufsz > u->bufmax) {
                 if ((bufp = realloc(u->buf, u->bufsz)) == NULL) {                  if ((bufp = realloc(u->buf, u->bufsz)) == NULL) {
                         ERR("realloc");                          ERR("realloc");
                           free(blk.blks);
                         return -1;                          return -1;
                 }                  }
                 u->buf = bufp;                  u->buf = bufp;

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27