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>
This commit is contained in:

committed by
Junio C Hamano

parent
e9d7d10a7f
commit
c71e917975
1
remote.c
1
remote.c
@ -579,7 +579,6 @@ int valid_fetch_refspec(const char *fetch_refspec_str)
|
|||||||
struct refspec *refspec;
|
struct refspec *refspec;
|
||||||
|
|
||||||
refspec = parse_refspec_internal(1, fetch_refspec, 1, 1);
|
refspec = parse_refspec_internal(1, fetch_refspec, 1, 1);
|
||||||
if (refspec)
|
|
||||||
free(refspec);
|
free(refspec);
|
||||||
return !!refspec;
|
return !!refspec;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user