Maapi_query_free_result mem leak

Hi,
There’s a memory leak at maapi_query_free_result():

The below block should happen regardless if there are results or not, at if (qr->nresults > 0) {

if (qr->__internal) {
    ETERM *e = qr->__internal;
    erl_free_compound(e);
}

Found using valgrind.