diff --git a/src/modules/htable/htable.c b/src/modules/htable/htable.c index 18a3ab8c99c..f4c4e967e35 100644 --- a/src/modules/htable/htable.c +++ b/src/modules/htable/htable.c @@ -1064,12 +1064,14 @@ static void htable_rpc_reload(rpc_t* rpc, void* c) if (rpc->scan(c, "S", &htname) < 1) { + ht_db_close_con(); rpc->fault(c, 500, "No htable name given"); return; } ht = ht_get_table(&htname); if(ht==NULL) { + ht_db_close_con(); rpc->fault(c, 500, "No such htable"); return; }