MXS-2921: Fix memory leak in alter maxscale
				
					
				
			The alteration of core parameters leaked the JSON object.
This commit is contained in:
		@ -3020,6 +3020,7 @@ bool runtime_alter_maxscale_from_json(json_t* new_json)
 | 
				
			|||||||
                rval = false;
 | 
					                rval = false;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        json_decref(old_json);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return rval;
 | 
					    return rval;
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user