Fossil SCM

Replaced free() with fossil_free() for pedantic correctness. Minor related doc fix.

stephan 2012-07-13 18:01 trunk
Commit 9f98585e89d3d7fd7d68d2518cf1afae5a484cf8
1 file changed +2 -2
+2 -2
--- src/printf.c
+++ src/printf.c
@@ -753,18 +753,18 @@
753753
}
754754
if( nspace>0 ) blob_append(pBlob,spaces,nspace);
755755
}
756756
}
757757
if( zExtra ){
758
- free(zExtra);
758
+ fossil_free(zExtra);
759759
}
760760
}/* End for loop over the format string */
761761
return errorflag ? -1 : count;
762762
} /* End of function */
763763
764764
/*
765
-** Print into memory obtained from malloc().
765
+** Print into memory obtained from fossil_malloc().
766766
*/
767767
char *mprintf(const char *zFormat, ...){
768768
va_list ap;
769769
char *z;
770770
va_start(ap,zFormat);
771771
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button