Fossil SCM
Replaced free() with fossil_free() for pedantic correctness. Minor related doc fix.
Commit
9f98585e89d3d7fd7d68d2518cf1afae5a484cf8
Parent
91a740e82a36a65…
1 file changed
+2
-2
+2
-2
| --- src/printf.c | ||
| +++ src/printf.c | ||
| @@ -753,18 +753,18 @@ | ||
| 753 | 753 | } |
| 754 | 754 | if( nspace>0 ) blob_append(pBlob,spaces,nspace); |
| 755 | 755 | } |
| 756 | 756 | } |
| 757 | 757 | if( zExtra ){ |
| 758 | - free(zExtra); | |
| 758 | + fossil_free(zExtra); | |
| 759 | 759 | } |
| 760 | 760 | }/* End for loop over the format string */ |
| 761 | 761 | return errorflag ? -1 : count; |
| 762 | 762 | } /* End of function */ |
| 763 | 763 | |
| 764 | 764 | /* |
| 765 | -** Print into memory obtained from malloc(). | |
| 765 | +** Print into memory obtained from fossil_malloc(). | |
| 766 | 766 | */ |
| 767 | 767 | char *mprintf(const char *zFormat, ...){ |
| 768 | 768 | va_list ap; |
| 769 | 769 | char *z; |
| 770 | 770 | va_start(ap,zFormat); |
| 771 | 771 |
| --- src/printf.c | |
| +++ src/printf.c | |
| @@ -753,18 +753,18 @@ | |
| 753 | } |
| 754 | if( nspace>0 ) blob_append(pBlob,spaces,nspace); |
| 755 | } |
| 756 | } |
| 757 | if( zExtra ){ |
| 758 | free(zExtra); |
| 759 | } |
| 760 | }/* End for loop over the format string */ |
| 761 | return errorflag ? -1 : count; |
| 762 | } /* End of function */ |
| 763 | |
| 764 | /* |
| 765 | ** Print into memory obtained from malloc(). |
| 766 | */ |
| 767 | char *mprintf(const char *zFormat, ...){ |
| 768 | va_list ap; |
| 769 | char *z; |
| 770 | va_start(ap,zFormat); |
| 771 |
| --- src/printf.c | |
| +++ src/printf.c | |
| @@ -753,18 +753,18 @@ | |
| 753 | } |
| 754 | if( nspace>0 ) blob_append(pBlob,spaces,nspace); |
| 755 | } |
| 756 | } |
| 757 | if( zExtra ){ |
| 758 | fossil_free(zExtra); |
| 759 | } |
| 760 | }/* End for loop over the format string */ |
| 761 | return errorflag ? -1 : count; |
| 762 | } /* End of function */ |
| 763 | |
| 764 | /* |
| 765 | ** Print into memory obtained from fossil_malloc(). |
| 766 | */ |
| 767 | char *mprintf(const char *zFormat, ...){ |
| 768 | va_list ap; |
| 769 | char *z; |
| 770 | va_start(ap,zFormat); |
| 771 |