1
1

Protect against a bad free: full_line points to the full buffer. But

line may point to a few characters beyond the beginning of the buffer
(if the buffer had some extra white space padding at the beginning).
So if we want to free the buffer, free full_line, not line.

This commit was SVN r15315.
Этот коммит содержится в:
Jeff Squyres 2007-07-09 19:56:16 +00:00
родитель 69c4acece4
Коммит 892bc38ad0

Просмотреть файл

@ -213,7 +213,7 @@ static int process(char *orig_line, char *basename, int argc, char **argv,
/* Split up into argv */
*new_argv = opal_argv_split(line, ' ');
free(line);
free(full_line);
/* Can we find argv[0] in the path? */