소스 검색

db_flatstore: updated get_abs_pathname use

Use pkg_free() now for freeing the result of get_abs_pathname().
Andrei Pelinescu-Onciul 15 년 전
부모
커밋
8a5f9abd13
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/db_flatstore/flat_uri.c

+ 1 - 1
modules/db_flatstore/flat_uri.c

@@ -70,7 +70,7 @@ int flat_uri(db_uri_t* uri)
 
  error:
 	if (furi) {
-		if (furi->path.s) free(furi->path.s);
+		if (furi->path.s) pkg_free(furi->path.s);
 		db_drv_free(&furi->drv);
 		pkg_free(furi);
 	}