[Spice-devel,v2,03/19] Free state on spice_server_destroy

Submitted by Frediano Ziglio on Nov. 25, 2016, 2:52 p.m.

Details

Message ID 7854fbbb40614a807cd2aca42f1ceb2720cc67a0.1480085518.git-series.fziglio@redhat.com
State New
Headers show
Series "Start cleaning objects on destruction" ( rev: 4 3 2 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Nov. 25, 2016, 2:52 p.m.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 server/reds.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/server/reds.c b/server/reds.c
index 1b1c737..c5e84ec 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3603,6 +3603,7 @@  SPICE_GNUC_VISIBLE void spice_server_destroy(SpiceServer *reds)
 #ifdef RED_STATISTICS
     stat_file_free(reds->stat_file);
 #endif
+    free(reds);
 }
 
 SPICE_GNUC_VISIBLE spice_compat_version_t spice_get_current_compat_version(void)

Comments

On Fri, 2016-11-25 at 14:52 +0000, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
> ---
>  server/reds.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/server/reds.c b/server/reds.c
> index 1b1c737..c5e84ec 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -3603,6 +3603,7 @@ SPICE_GNUC_VISIBLE void
> spice_server_destroy(SpiceServer *reds)
>  #ifdef RED_STATISTICS
>      stat_file_free(reds->stat_file);
>  #endif
> +    free(reds);
>  }
>  
>  SPICE_GNUC_VISIBLE spice_compat_version_t
> spice_get_current_compat_version(void)