mirror of https://git.48k.eu/ogserver
rest: fix memory leak in client/update
Free dbi result after use in og_cmd_post_client_update().master
parent
9891276246
commit
c4d71193a5
|
@ -1986,6 +1986,9 @@ static int og_cmd_post_client_update(json_t *element,
|
|||
og_dbi_close(dbi);
|
||||
return -1;
|
||||
}
|
||||
|
||||
dbi_result_free(result);
|
||||
|
||||
result = dbi_conn_queryf(dbi->conn,
|
||||
"UPDATE ordenadores"
|
||||
" SET numserie='%s',"
|
||||
|
|
Loading…
Reference in New Issue