Commit 1b7a69d3cacfdc8626072ae04c257854b6220c7f

Stefan Sperling 2019-08-11T21:22:12

remove pointless strdup() call which slipped into previous commit

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index 02fe06d..df69fef 100644
--- a/got/got.c
+++ b/got/got.c
@@ -1870,7 +1870,7 @@ match_object_id(struct got_object_id **id, char **label,
 		if (*id == NULL)
 			err = got_error_from_errno("got_object_id_dup");
 		if (asprintf(label, "refs/tags/%s",
-		    strdup(got_object_tag_get_name(tag))) == -1)
+		    got_object_tag_get_name(tag)) == -1)
 			err = got_error_from_errno("asprintf");
 		got_object_tag_close(tag);
 		return err;