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)
mr9.5.6
Richard Fuchs 4 years ago
parent 7c4f0eddba
commit 9a8480ca03

@ -1644,6 +1644,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