qjson: free str
Release the qstring allocated in qjson_new(). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
		
							parent
							
								
									9d324b0e67
								
							
						
					
					
						commit
						df37dd6ffe
					
				| @ -109,5 +109,6 @@ void qjson_finish(QJSON *json) | ||||
| 
 | ||||
| void qjson_destroy(QJSON *json) | ||||
| { | ||||
|     QDECREF(json->str); | ||||
|     g_free(json); | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Marc-André Lureau
						Marc-André Lureau