]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
free a little later
authormmj <none@none>
Mon, 15 Nov 2004 10:21:06 +0000 (21:21 +1100)
committermmj <none@none>
Mon, 15 Nov 2004 10:21:06 +0000 (21:21 +1100)
src/send_digest.c

index 9ff59a4e9ce978bd041fc526ea5c22289931fdf2..dc54b5fc344c1242eeb79966c4d6e7005917c66b 100644 (file)
@@ -101,8 +101,6 @@ int send_digest(const char *listdir, int firstindex, int lastindex,
        if (writen(fd, fromstr, strlen(fromstr)) < -1)
                goto errdighdrs;
 
-       myfree(fromstr);
-       
        if(dumpfd2fd(hdrfd, fd) < 0) {
                close(hdrfd);
                goto errdighdrs;
@@ -124,6 +122,7 @@ errdighdrs:
                return -1;
        }
        myfree(tmp);
+       myfree(fromstr);
 
        for (i=firstindex; i<=lastindex; i++) {
                snprintf(buf, sizeof(buf), "%d", i);