fix: leaking buffer in upload_parts(), when we error out due to too many parts

Tue, 15 Oct 2019 09:22:57 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 15 Oct 2019 09:22:57 +0200
changeset 659
51206020cfbe
parent 658
67c9f88b13c7
child 660
e835ec0b7f17

fix: leaking buffer in upload_parts(), when we error out due to too many parts

dav/sync.c file | annotate | diff | comparison | revisions
--- a/dav/sync.c	Tue Oct 15 09:09:07 2019 +0200
+++ b/dav/sync.c	Tue Oct 15 09:22:57 2019 +0200
@@ -3697,6 +3697,7 @@
     if(digits > 127) {
         fprintf(stderr, "Too many parts\n");
         *err = 1;
+	free(buffer);
         return NULL;
     }
     

mercurial