Commit 00eb6a1fb9f2f7f11d18494a994d3594d5f495ef

Stefan Sperling 2019-07-15T15:20:45

get rid of an inline implementation of got_object_qid_free()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/lib/object_parse.c b/lib/object_parse.c
index 75a7a67..bbf3289 100644
--- a/lib/object_parse.c
+++ b/lib/object_parse.c
@@ -276,8 +276,7 @@ got_object_commit_add_parent(struct got_commit_object *commit,
 
 	if (!got_parse_sha1_digest(qid->id->sha1, id_str)) {
 		err = got_error(GOT_ERR_BAD_OBJ_DATA);
-		free(qid->id);
-		free(qid);
+		got_object_qid_free(qid);
 		return err;
 	}