File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -675,7 +675,10 @@ static void VSICheckMarkerEnd(char *ptr, size_t nEnd)
675
675
/* VSIRealloc() */
676
676
/* ***********************************************************************/
677
677
678
- /* * Analog of realloc(). Use VSIFree() to free */
678
+ /* * Analog of realloc(). Use VSIFree() to free.
679
+ *
680
+ * If the pointer is NULL, VSIRealloc is equivalent to VSIMalloc.
681
+ */
679
682
void *VSIRealloc (void *pData, size_t nNewSize)
680
683
681
684
{
@@ -824,7 +827,11 @@ void *VSIRealloc(void *pData, size_t nNewSize)
824
827
/* ***********************************************************************/
825
828
826
829
/* * Analog of free() for data allocated with VSIMalloc(), VSICalloc(),
827
- * VSIRealloc() */
830
+ * VSIRealloc().
831
+ *
832
+ * It is not an error to call VSIFree with a NULL pointer, and it will
833
+ * have no effect.
834
+ */
828
835
void VSIFree (void *pData)
829
836
830
837
{
You can’t perform that action at this time.
0 commit comments