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)
mr10.5.3
Richard Fuchs 3 years ago
parent 8d394a2818
commit 7970fce0f8

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