minor fixes

This commit is contained in:
gmega 2026-01-30 18:14:42 -03:00
parent a23a115b13
commit 88fa3de963
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18
2 changed files with 4 additions and 2 deletions

View File

@ -37,10 +37,9 @@ e_storage_start(node);
// Upload a file
char *cid = e_storage_upload(node, "/path/to/file.txt", progress_cb);
free(cid);
// Download a file
e_storage_download(node, cid, "/path/to/output.txt", progress_cb);
free(cid);
// Cleanup
e_storage_stop(node);

View File

@ -29,6 +29,9 @@ int main(int argc, char *argv[]) {
char *spr = e_storage_spr(node);
printf("Run: downloader %s %s ./output-file\n", spr, cid);
free(cid);
free(spr);
printf("\nPress Enter to exit\n");
getchar();