View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004798 | ardour | bugs | public | 2012-03-27 23:50 | 2020-04-19 20:16 |
| Reporter | ahurst | Assigned To | cth103 | ||
| Priority | normal | Severity | trivial | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.0-beta3 | ||||
| Target Version | 3.0 | ||||
| Summary | 0004798: Memory leak | ||||
| Description | High impact static analysis bug: An allocated resource is leaked in libs/evoral/src/libsmf/smf_load.c:913. A free(file_buffer) should probably be added at line 842. | ||||
| Additional Information | *** "file_buffer" is allocated. 833 *file_buffer = malloc(*file_buffer_length); 834 if (*file_buffer == NULL) { 835 g_critical("malloc(3) failed: %s", strerror(errno)); 836 837 return (-5); 838 } 839 840 if (fread(*file_buffer, 1, *file_buffer_length, stream) != *file_buffer_length) { 841 g_critical("fread(3) failed: %s", strerror(errno)); *** Function returns without freeing "file_buffer". 842 843 return (-6); 844 } 909 void *file_buffer; 910 smf_t *smf; 911 912 if (load_file_into_buffer(&file_buffer, &file_buffer_length, file)) *** "file_buffer" goes out of scope without being freed by its caller. 913 return (NULL); | ||||
| Tags | No tags attached. | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2012-03-27 23:50 | ahurst | New Issue | |
| 2012-03-28 12:24 | cth103 | cost | => 0.00 |
| 2012-03-28 12:24 | cth103 | Fixed in Version | => 3.0 beta4 |
| 2012-03-28 14:23 | cth103 | Fixed in Version | 3.0 beta4 => |
| 2012-03-28 14:23 | cth103 | Target Version | => 3.0 beta4 |
| 2012-04-01 15:06 | cth103 | Note Added: 0013058 | |
| 2012-04-01 15:06 | cth103 | Status | new => resolved |
| 2012-04-01 15:06 | cth103 | Resolution | open => fixed |
| 2012-04-01 15:06 | cth103 | Assigned To | => cth103 |
| 2012-05-23 15:08 | cth103 | Target Version | 3.0 beta4 => 3.0 |
| 2020-04-19 20:16 | system | Note Added: 0023010 | |
| 2020-04-19 20:16 | system | Status | resolved => closed |