diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c
index e5229c0b78c1bdb3e8e0f88c968796c193a3d7fc..5c79d101c98eed3c9d36a6300306219820480b4e 100644
--- a/src/bin/pg_ctl/pg_ctl.c
+++ b/src/bin/pg_ctl/pg_ctl.c
@@ -383,7 +383,7 @@ free_readfile(char **optlines)
 
 	while (optlines[i++])
 		free(optlines[i]);
-	
+
 	free(optlines);
 
 	return;
diff --git a/src/interfaces/ecpg/preproc/variable.c b/src/interfaces/ecpg/preproc/variable.c
index d762286b94f9f739883f68fb8af2d087ac18e927..50ddeab2e850854eb089bb72a3ea1f6b8b1879b9 100644
--- a/src/interfaces/ecpg/preproc/variable.c
+++ b/src/interfaces/ecpg/preproc/variable.c
@@ -456,7 +456,7 @@ dump_variables(struct arguments * list, int mode)
 	/* Then release the list element. */
 	if (mode != 0)
 		free(list);
-	
+
 	free(str_zero);
 }
 
diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c
index 6f74108bd68bcb0cfe2ccd471d15eb2a4bae8338..8ccf6d39ee246d9ffa43c2010d5e3c8a8dc8de16 100644
--- a/src/interfaces/libpq/fe-exec.c
+++ b/src/interfaces/libpq/fe-exec.c
@@ -2760,7 +2760,7 @@ PQfnumber(const PGresult *res, const char *field_name)
 		for (i = 0; i < res->numAttributes; i++)
 			if (strcmp(field_name, res->attDescs[i].name) == 0)
 				return i;
-	
+
 	/* Fall through to the normal check if that didn't work out. */
 
 	/*
diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c
index 438b95fe59aeb742007171edfeb81e3365d31b32..475a11a7f6fb1f292b971645e3ffe9b83c2dd34d 100644
--- a/src/test/regress/pg_regress.c
+++ b/src/test/regress/pg_regress.c
@@ -1159,7 +1159,7 @@ get_alternative_expectfile(const char *expectfile, int i)
 
 	if (!(tmp = (char*) malloc(ssize)))
 		return NULL;
-	
+
 	if (!(s = (char*) malloc(ssize)))
 	{
 		free(tmp);