diff options
author | Jim Meyering <meyering@redhat.com> | 2008-08-19 22:46:30 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-20 08:09:30 +0400 |
commit | c71e917975ecd5fdc4caef245cf18b244213e3f6 (patch) | |
tree | ce4300f1a50e64f73a0762c0b25b65536d7215d2 | |
parent | e9d7d10a7f17fb9cc6a4d37b6fdf27170f4deede (diff) |
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>
-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; } |