fix memory leak in wordcount
This commit is contained in:
@@ -158,7 +158,7 @@ void Map(char *file_name) {
|
|||||||
MR_Emit(token, "1");
|
MR_Emit(token, "1");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
free(line);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user