summaryrefslogtreecommitdiff
path: root/lib/gnutls_compress_int.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gnutls_compress_int.c')
-rw-r--r--lib/gnutls_compress_int.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gnutls_compress_int.c b/lib/gnutls_compress_int.c
index 216b7f328a..894d1fd2ad 100644
--- a/lib/gnutls_compress_int.c
+++ b/lib/gnutls_compress_int.c
@@ -68,9 +68,7 @@ int err;
ret->handle = gnutls_malloc( sizeof( z_stream));
if (ret->handle==NULL) {
gnutls_assert();
- cleanup_ret:
- gnutls_free(ret);
- return NULL;
+ goto cleanup_ret;
}
zhandle = ret->handle;
@@ -102,7 +100,9 @@ int err;
if (ret->handle==NULL) {
gnutls_assert();
- goto cleanup_ret;
+ cleanup_ret:
+ gnutls_free(ret);
+ return NULL;
}
}