Fossil SCM
For the tar / zip web pages, avoid dangling references involving zRid.
Commit
dbe16d7bb4cf72003a67cd5f45d04fb9fd72eaaa277553716b58ee097b522754
Parent
5d9d62d8188187a…
2 files changed
+1
+1
+1
| --- src/tar.c | ||
| +++ src/tar.c | ||
| @@ -808,9 +808,10 @@ | ||
| 808 | 808 | } |
| 809 | 809 | glob_free(pInclude); |
| 810 | 810 | glob_free(pExclude); |
| 811 | 811 | fossil_free(zName); |
| 812 | 812 | fossil_free(zRid); |
| 813 | + g.zOpenRevision = 0; | |
| 813 | 814 | blob_reset(&cacheKey); |
| 814 | 815 | cgi_set_content(&tarball); |
| 815 | 816 | cgi_set_content_type("application/x-compressed"); |
| 816 | 817 | } |
| 817 | 818 |
| --- src/tar.c | |
| +++ src/tar.c | |
| @@ -808,9 +808,10 @@ | |
| 808 | } |
| 809 | glob_free(pInclude); |
| 810 | glob_free(pExclude); |
| 811 | fossil_free(zName); |
| 812 | fossil_free(zRid); |
| 813 | blob_reset(&cacheKey); |
| 814 | cgi_set_content(&tarball); |
| 815 | cgi_set_content_type("application/x-compressed"); |
| 816 | } |
| 817 |
| --- src/tar.c | |
| +++ src/tar.c | |
| @@ -808,9 +808,10 @@ | |
| 808 | } |
| 809 | glob_free(pInclude); |
| 810 | glob_free(pExclude); |
| 811 | fossil_free(zName); |
| 812 | fossil_free(zRid); |
| 813 | g.zOpenRevision = 0; |
| 814 | blob_reset(&cacheKey); |
| 815 | cgi_set_content(&tarball); |
| 816 | cgi_set_content_type("application/x-compressed"); |
| 817 | } |
| 818 |
+1
| --- src/zip.c | ||
| +++ src/zip.c | ||
| @@ -978,10 +978,11 @@ | ||
| 978 | 978 | } |
| 979 | 979 | glob_free(pInclude); |
| 980 | 980 | glob_free(pExclude); |
| 981 | 981 | fossil_free(zName); |
| 982 | 982 | fossil_free(zRid); |
| 983 | + g.zOpenRevision = 0; | |
| 983 | 984 | blob_reset(&cacheKey); |
| 984 | 985 | cgi_set_content(&zip); |
| 985 | 986 | if( eType==ARCHIVE_ZIP ){ |
| 986 | 987 | cgi_set_content_type("application/zip"); |
| 987 | 988 | }else{ |
| 988 | 989 |
| --- src/zip.c | |
| +++ src/zip.c | |
| @@ -978,10 +978,11 @@ | |
| 978 | } |
| 979 | glob_free(pInclude); |
| 980 | glob_free(pExclude); |
| 981 | fossil_free(zName); |
| 982 | fossil_free(zRid); |
| 983 | blob_reset(&cacheKey); |
| 984 | cgi_set_content(&zip); |
| 985 | if( eType==ARCHIVE_ZIP ){ |
| 986 | cgi_set_content_type("application/zip"); |
| 987 | }else{ |
| 988 |
| --- src/zip.c | |
| +++ src/zip.c | |
| @@ -978,10 +978,11 @@ | |
| 978 | } |
| 979 | glob_free(pInclude); |
| 980 | glob_free(pExclude); |
| 981 | fossil_free(zName); |
| 982 | fossil_free(zRid); |
| 983 | g.zOpenRevision = 0; |
| 984 | blob_reset(&cacheKey); |
| 985 | cgi_set_content(&zip); |
| 986 | if( eType==ARCHIVE_ZIP ){ |
| 987 | cgi_set_content_type("application/zip"); |
| 988 | }else{ |
| 989 |