diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-10-28 14:51:13 -0700 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-10-28 19:02:36 -0700 |
| commit | 3286c408eccb18c525ca123383f3ebf5097441bc (patch) | |
| tree | 4422fe16ab4f7b9cf713e0209cbb74fb4115889e /src/netops.c | |
| parent | da37654d04617b4dacce6e7a4796007d2854624d (diff) | |
| download | libgit2-3286c408eccb18c525ca123383f3ebf5097441bc.tar.gz | |
global: Properly use `git__` memory wrappers
Ensure that all memory related functions (malloc, calloc, strdup, free,
etc) are using their respective `git__` wrappers.
Diffstat (limited to 'src/netops.c')
| -rw-r--r-- | src/netops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netops.c b/src/netops.c index dad296a94..73375d725 100644 --- a/src/netops.c +++ b/src/netops.c @@ -190,7 +190,7 @@ int gitno_extract_host_and_port(char **host, char **port, const char *url, const delim = colon == NULL ? slash : colon; *host = git__strndup(url, delim - url); if (*host == NULL) { - free(*port); + git__free(*port); error = GIT_ENOMEM; } |
