MT#55628 fix Coverity RESOURCE_LEAK warning

Fixes an inconsequential mem leak (mediator would shut down after
logging the error anyway)

Change-Id: I6d3bdbabc70d2fbae063490479da7d9722cc08df
(cherry picked from commit 8388782643)
mr11.1
Richard Fuchs 4 years ago
parent e872a7f0ba
commit da459c1099

@ -1696,6 +1696,7 @@ static int medmysql_flush_single_cdrs(struct medmysql_cdr_batch *batch) {
unsigned long auto_id = mysql_insert_id((*def->handler_ptr)->m);
if (!auto_id) {
L_CRITICAL("Received zero auto-ID from SQL");
g_free(stmt);
return -1;
}

Loading…
Cancel
Save