View Issue Details

IDProjectCategoryView StatusLast Update
0009527Talermerchant backendpublic2025-05-10 02:11
Reporterfefe Assigned ToChristian Grothoff Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version0.14 
Target Version1.0Fixed in Version1.0 
Summary0009527: FIXME in TALER_MERCHANTDB_category_details_free looks like a legit memory leak
DescriptionThis is in exchange/src/merchantdb/merchantdb_helper.c:

``` 85 void
 86 TALER_MERCHANTDB_category_details_free (
 87 struct TALER_MERCHANTDB_CategoryDetails *cd)
 88 {
 89 GNUNET_free (cd->category_name);
 90 json_decref (cd->category_name_i18n);
 91 // FIXME: also return product details
 92 // for (unsigned int i = 0; i<cd->num_products; i++)
 93 // {
 94 // const char* *ps
 95 // = &cd->products[i];
 96
 97 // GNUNET_free (ps);
 98 // // GNUNET_free (ps->description);
 99 // // json_decref (ps->description_i18n);
100 // }
101 // GNUNET_array_grow (cd->products,
102 // cd->num_products,
103 // 0);
104 }
```

The FIXME looks right. The struct has more members that this function isn't freeing right now.
Is this a memory leak?
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2025-02-10 13:40

manager   ~0024061

You're on an outdated code base, this was already fixed in Git master (with various other cleanups and FIXMEs). Can you maybe shift to auditing 0.14.5?

Issue History

Date ModifiedUsernameFieldChange
2025-02-10 13:16fefeNew Issue
2025-02-10 13:16fefeStatusnew => assigned
2025-02-10 13:16fefeAssigned To => Christian Grothoff
2025-02-10 13:40Christian GrothoffNote Added: 0024061
2025-02-10 13:40Christian GrothoffStatusassigned => informing
2025-02-10 13:40Christian GrothoffResolutionopen => fixed
2025-02-10 13:40Christian GrothoffFixed in Version => 1.0
2025-02-10 13:40Christian GrothoffProduct Version => 0.14
2025-02-10 13:40Christian GrothoffTarget Version => 1.0
2025-03-22 13:09Christian GrothoffCategorymechant backend => merchant backend
2025-05-10 02:11Christian GrothoffStatusinforming => closed