diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml
index 98b6840..84c7bf0 100644
--- a/doc/src/sgml/ecpg.sgml
+++ b/doc/src/sgml/ecpg.sgml
@@ -3891,7 +3891,7 @@ EXEC SQL DESCRIBE prepared_statement INTO mysqlda;
Fetch rows from the cursor, and store them into an output SQLDA.
Read values from the output SQLDA into the host variables (with conversion if necessary).
Close the cursor.
- Free the memory area allocated for the input SQLDA.
+ Free the memory area allocated for the input and output SQLDAs.
@@ -4210,6 +4210,12 @@ switch (v.sqltype)
}
+
+ Finally after using output SQLDA, the allocated memory space must be freed explicity.
+
+free(sqlda1);
+
+
@@ -4290,8 +4296,7 @@ EXEC SQL OPEN cur1 USING DESCRIPTOR sqlda2;
Finally, after using input SQLDAs, the allocated memory space
- must be freed explicitly, unlike SQLDAs used for receiving query
- results.
+ must be freed explicitly.
free(sqlda2);
@@ -4583,6 +4588,7 @@ main(void)
}
}
+ free(sqlda1);
EXEC SQL CLOSE cur1;
EXEC SQL COMMIT;