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>
Jim Meyering committed
Aug 19, 2008 at 20:46 UTC
c71e917975ecd5fdc4caef245cf18b244213e3f6
1 file changed
+1
-2
remote.c
+1
-2
@@ -579,8 +579,7 @@ int valid_fetch_refspec(const char *fetch_refspec_str)
579
struct refspec *refspec;
580
581
refspec = parse_refspec_internal(1, fetch_refspec, 1, 1);
582
- if (refspec)
583
- free(refspec);
582
+ free(refspec);
583
return !!refspec;
584
}
585