* Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD.
*
- * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.120 2006/07/31 01:16:37 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.121 2006/08/20 16:08:09 meskes Exp $
*
*-------------------------------------------------------------------------
*/
}
fclose(infile);
+ free(buffer);
result[nlines] = NULL;
return result;
progname, path, strerror(errno));
exit_nicely();
}
+ free(path);
}
/*
progname, path, strerror(errno));
exit_nicely();
}
+ free(path);
}
/*
PG_CMD_PRINTF2("ALTER USER \"%s\" WITH PASSWORD E'%s';\n",
username, escape_quotes(pwd1));
+ /* MM: pwd1 is no longer needed, freeing it */
+ free(pwd1);
+
PG_CMD_CLOSE;
check_ok();