Fossil SCM
fixed a string memleak in baseline_zip_page()
Commit
1ce0ac53ef7c7e1f48fa63e4b5869a4f8c057103
Parent
c1d9e0f4f81ac38…
1 file changed
+1
+1
| --- src/zip.c | ||
| +++ src/zip.c | ||
| @@ -372,9 +372,10 @@ | ||
| 372 | 372 | @ Not found |
| 373 | 373 | return; |
| 374 | 374 | } |
| 375 | 375 | if( nName>10 ) zName[10] = 0; |
| 376 | 376 | zip_of_baseline(rid, &zip, zName); |
| 377 | + free( zName ); | |
| 377 | 378 | cgi_set_content(&zip); |
| 378 | 379 | cgi_set_content_type("application/zip"); |
| 379 | 380 | cgi_reply(); |
| 380 | 381 | } |
| 381 | 382 |
| --- src/zip.c | |
| +++ src/zip.c | |
| @@ -372,9 +372,10 @@ | |
| 372 | @ Not found |
| 373 | return; |
| 374 | } |
| 375 | if( nName>10 ) zName[10] = 0; |
| 376 | zip_of_baseline(rid, &zip, zName); |
| 377 | cgi_set_content(&zip); |
| 378 | cgi_set_content_type("application/zip"); |
| 379 | cgi_reply(); |
| 380 | } |
| 381 |
| --- src/zip.c | |
| +++ src/zip.c | |
| @@ -372,9 +372,10 @@ | |
| 372 | @ Not found |
| 373 | return; |
| 374 | } |
| 375 | if( nName>10 ) zName[10] = 0; |
| 376 | zip_of_baseline(rid, &zip, zName); |
| 377 | free( zName ); |
| 378 | cgi_set_content(&zip); |
| 379 | cgi_set_content_type("application/zip"); |
| 380 | cgi_reply(); |
| 381 | } |
| 382 |