diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-10-17 13:25:21 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-17 13:25:21 -0700 |
commit | 69e6544998892a2bd3c785cd238c786da40cf6a3 (patch) | |
tree | 5226289723f43db878429658b27a89b4ad23ee57 /contrib | |
parent | 9424bf27079a1262e42a2330283f7ab6c805267a (diff) | |
parent | a94bb683970a111b467a36590ca36e52754ad504 (diff) | |
download | git-69e6544998892a2bd3c785cd238c786da40cf6a3.tar.gz git-69e6544998892a2bd3c785cd238c786da40cf6a3.tar.xz |
Merge branch 'rs/cocci'
Code cleanup.
* rs/cocci:
use strbuf_add_unique_abbrev() for adding short hashes, part 3
remove unnecessary NULL check before free(3)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/coccinelle/free.cocci | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/coccinelle/free.cocci b/contrib/coccinelle/free.cocci new file mode 100644 index 000000000..e28213161 --- /dev/null +++ b/contrib/coccinelle/free.cocci @@ -0,0 +1,5 @@ +@@ +expression E; +@@ +- if (E) + free(E); |