소스 검색

Clear array pointer after deallocation

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@44380 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 14 년 전
부모
커밋
98249e1815
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      lib/raster/history.c

+ 1 - 0
lib/raster/history.c

@@ -310,6 +310,7 @@ void Rast_clear_history(struct History *hist)
     if (hist->lines)
 	G_free(hist->lines);
 
+    hist->lines = NULL;
     hist->nlines = 0;
 }