mirror of https://git.48k.eu/ogserver
rest: do not release dbi in og_get_client_mode_params()
caller function releases this, this results in double free.master
parent
aebf2281bf
commit
c110bd7d8d
|
@ -1532,7 +1532,6 @@ static int og_get_client_mode_params(struct og_dbi *dbi, const char *mac, char *
|
|||
dbi_conn_error(dbi->conn, &msglog);
|
||||
syslog(LOG_ERR, "failed to query database (%s:%d) %s\n",
|
||||
__func__, __LINE__, msglog);
|
||||
og_dbi_close(dbi);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -1541,7 +1540,6 @@ static int og_get_client_mode_params(struct og_dbi *dbi, const char *mac, char *
|
|||
syslog(LOG_ERR, "failed to query database (%s:%d) %s\n", // TODO
|
||||
__func__, __LINE__, msglog);
|
||||
dbi_result_free(result);
|
||||
og_dbi_close(dbi);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue