From 39d9f34cb8cf0e2ccdfe9ecb4015e178feabf84a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Wed, 3 May 2017 14:57:59 +0200 Subject: [PATCH] * libwget/xalloc.c: Satisfy syntax-check --- libwget/xalloc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libwget/xalloc.c b/libwget/xalloc.c index bfe7ac0b..8f39bcd7 100644 --- a/libwget/xalloc.c +++ b/libwget/xalloc.c @@ -132,7 +132,7 @@ void *wget_realloc(void *ptr, size_t size) * * This function is like free(). * - * Is is basically needed on systems where the library malloc heap is different + * It is basically needed on systems where the library malloc heap is different * from the caller's malloc heap, which happens on Windows when the library * is a separate DLL. * @@ -140,8 +140,7 @@ void *wget_realloc(void *ptr, size_t size) */ void wget_free(void *ptr) { - if (ptr) - free(ptr); + free(ptr); } /**@}*/