ui/ncurses: Use pmenu_item destrutor to free ncurses ITEMs
[petitboot] / discover / file.c
index 4bad0123e12e1154975adbcc0580c0b74e930918..1bde9fb805ba906c95ca4ec24df9d1dc921994af 100644 (file)
@@ -114,7 +114,7 @@ int replace_file(const char *filename, char *buf, int len)
                rc = rename(tempfile, filename);
        }
 
-       free(tempfile);
+       talloc_free(tempfile);
 
        fchmod(fd, 0644);