Explorar o código

db_flatstore: updated get_abs_pathname use

Use pkg_free() now for freeing the result of get_abs_pathname().
Andrei Pelinescu-Onciul %!s(int64=15) %!d(string=hai) anos
pai
achega
8a5f9abd13
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 	}