#vulnerable code 
                             private SearchRequestBuilder explan(SQLQueryExpr SQLQueryExpr) throws SqlParseException {
		Select select = new SqlParser().parseSelect(SQLQueryExpr);

		Query query = null;

		Client client = new TransportClient();

		if (select.isAgg) {
			query = new AggregationQuery(client, select);
		} else {
			query = new DefaultQuery(client, select);
		}
		return query.explan();
	} 
                            #location 13 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             private SearchRequestBuilder explan(SQLQueryExpr SQLQueryExpr) throws SqlParseException {
		Select select = new SqlParser().parseSelect(SQLQueryExpr);

		Query query = null;

		if (select.isAgg) {
			query = new AggregationQuery(client, select);
		} else {
			query = new DefaultQuery(client, select);
		}
		return query.explan();
	}