]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Avoid the same leak that existed at v1.4.0
authorpcarana <pc.moreno2099@gmail.com>
Tue, 29 Sep 2020 15:21:26 +0000 (10:21 -0500)
committerpcarana <pc.moreno2099@gmail.com>
Tue, 29 Sep 2020 15:21:26 +0000 (10:21 -0500)
src/rsync/rsync.c

index e986cfdcfde20bd8dbcb3fd1cc9c4efa5aa77a00..a6b01bfe5c10a231f072fc9186ec219e77529899 100644 (file)
@@ -520,7 +520,7 @@ ancestor_error(char const *error_uri, void *arg)
 
        /* Ignore non rsync error'd URIs */
        if (!uri_is_rsync(req_err_uri)) {
-               free(req_err_uri);
+               uri_refput(req_err_uri);
                return 0;
        }