[Home]

Summary:ASTERISK-09664: Calling mysql_free_result without a valid result set crashes asterisk
Reporter:Edoardo Serra - WeBRainstorm S.r.l. (webrainstorm)Labels:
Date Opened:2007-06-12 17:53:44Date Closed:2007-06-12 18:06:07
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) app_addon_sql_mysql.c.stored-procedures.2.patch
Description:It makes no sense calling mysql_free_result in MYSQL(Query...) and MYSQL(Nextresult...) because if we get there it means we have no result set.

Moreover, calling it there would crash Asterisk

Sorry for that, mistake in MYSQL(Nextresult...) was inherited from MYSQL(Query...)

My 2 cents

--Ed

Comments:By: Jason Parker (jparker) 2007-06-12 18:05:06

Fixed in svn trunk in revision 397.

I just realized that this also would affect 1.4 - will fix there, revision will very likely be 398.

By: Jason Parker (jparker) 2007-06-12 18:06:07

(Just checked, and no, it doesn't affect 1.4, so ignore that last part)