diff --git a/contrib/chg/chg.c b/contrib/chg/chg.c --- a/contrib/chg/chg.c +++ b/contrib/chg/chg.c @@ -205,7 +205,7 @@ goto cleanup; memcpy(slash, "/hg", 4); return res; - cleanup: +cleanup: free(res); return NULL; }