summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-08-21 16:50:50 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-08-21 16:50:50 +0000
commit7e2b0abcb0da22d9a6e85ef49a5122f7ea0f255a (patch)
treeafebd008c5089eecff46d739b7e3087ca476621e /lib
parent7fe66c23a03d5d4ecf983f22cbffa2c540a75162 (diff)
downloadgnutls-7e2b0abcb0da22d9a6e85ef49a5122f7ea0f255a.tar.gz
minor cleanups.
Diffstat (limited to 'lib')
-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;
}
}