We study the changes of the CaI λ6102.7 A line profile and the magnetic field structure during the 1B/M2.2 while-light flare of August 12, 1981. The two brightest flare knots located in the penumbra of a sunspot with a δ configuration are investigated. The 1 ± V line profiles are analyzed. The reduction and analysis of our observations have yielded the following results. (1) The line profiles changed significantly during the flare, especially at the time of optical continuum emission observed near the flare maximum. In addition to the significant decrease in the depth, a narrow polarized emission whose Zeeman splitting corresponded to a longitudinal magnetic field strength of 3600 Gs was observed. This is much larger than the magnetic field strength in the underlying sunspot determined from the Zeeman splitting of absorption lines. (2) The largest changes of the CaI λ6102.7 A line profile observed during the flare can lead to an underestimation of the longitudinal magnetic field strength measured with a video magnetograph by a factor of 4.5, but they cannot be responsible for the polarity reversal. (3) A sharp short-term displacement of the neutral line occurred at a time close to the flare maximum, which gave rise to a reversed-polarity magnetic field on a small area of the active region, i.e., a magnetic transient. This can be interpreted as a change in the inclination of the magnetic field lines to the line of sight during the flare. The short-term depolarization of the CaI λ6102.7 A line emission observed at the other flare knot can also be the result of a change in the magnetic field structure. (4) These fast dynamic changes of the magnetic field lines occurred after the maximum of the impulsive flare phase and were close in time to the appearance of type II radio emission.