Fix some memory leaks

This commit is contained in:
2019-10-27 15:40:48 -04:00
parent 2943ca9365
commit 130fb78787
9 changed files with 25 additions and 11 deletions

View File

@@ -291,6 +291,7 @@ void incremental_copy(store_t *store, store_t *dst_store, const char *filepath,
size_t buf_len;
char *buf = store_read(store, (char *) line.uuid, 16, &buf_len);
store_write(dst_store, (char *) line.uuid, 16, buf, buf_len);
free(buf);
char c;
while ((c = (char) getc(file))) {