diff options
author | Jim Meyering <meyering@redhat.com> | 2008-08-19 20:46:30 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-19 21:09:30 -0700 |
commit | c71e917975ecd5fdc4caef245cf18b244213e3f6 (patch) | |
tree | ce4300f1a50e64f73a0762c0b25b65536d7215d2 /remote.c | |
parent | e9d7d10a7f17fb9cc6a4d37b6fdf27170f4deede (diff) | |
download | git-c71e917975ecd5fdc4caef245cf18b244213e3f6.tar.gz |
remote.c: remove useless if-before-free test
We removed a handful of these useless if-before-free tests several months
ago. This change removes a new one that snuck back in.
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.c')
-rw-r--r-- | remote.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -579,8 +579,7 @@ int valid_fetch_refspec(const char *fetch_refspec_str) struct refspec *refspec; refspec = parse_refspec_internal(1, fetch_refspec, 1, 1); - if (refspec) - free(refspec); + free(refspec); return !!refspec; } |