From hw@skalatan.de Mon Jun 29 22:28:02 2020 From: Henning Westerholt To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] Sql_result_free() not cleaning properly Date: Mon, 29 Jun 2020 20:27:59 +0000 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0660914421==" --===============0660914421== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, I guess you are using sql_xquery? The sql_free_result will only free a native= sql result in script, not the xavp. Cheers, Henning -- Henning Westerholt =E2=80=93 https://skalatan.de/blog/ Kamailio services =E2=80=93 https://gilawa.com From: sr-users On Behalf Of Duarte Ro= cha Sent: Wednesday, June 24, 2020 5:59 PM To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] Sql_result_free() not cleaning properly Greetings, I'm trying to clean a SQL result using "sql_result_free()" but i'm not having= success. Can you please verify if i'm doing anything wrong here? This is my code : xerr("Pre clean [0] =3D Iterator 0 =3D $xavp(Cli_PICKER_Default_S= earch_Result[0]=3D>Code)"); sql_result_free("Cli_PICKER_Default_Search_Result"); xerr("Pos clean [0] =3D Iterator 0 =3D $xavp(Cli_PICKER_Default_S= earch_Result[0]=3D>Code)"); The result is the following : ERROR: