Commit 8524ff9ab344067cc8f03b4f2ac9f4e66ce5a9bd

Stefan Sperling 2018-12-23T23:45:06

don't clean up twice in start_pack_privsep_child()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/lib/object.c b/lib/object.c
index d4be0fe..3694021 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -274,12 +274,7 @@ start_pack_privsep_child(struct got_pack *pack, struct got_packidx *packidx)
 		    pack->privsep_child->pid);
 		if (child_err && err == NULL)
 			err = child_err;
-		free(ibuf);
-		free(pack->privsep_child);
-		pack->privsep_child = NULL;
-		return err;
 	}
-
 done:
 	if (err) {
 		free(ibuf);