Skip to content

Commit

Permalink
Merge pull request vdr-projects#15 from kfb77/fork_master
Browse files Browse the repository at this point in the history
use free for memory allocated by realloc
  • Loading branch information
tomjfr authored Jan 29, 2024
2 parents 696a99b + 0899bb1 commit 7f2f23e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion menu_searchresults.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ bool cMenuSearchResultsForRecs::BuildList()
qsort(pArray, num, sizeof(cRecording *), CompareRecording);
for (int a = 0; a < num; a++)
Add(new cMenuSearchResultsItem(pArray[a]));
delete pArray;
free(pArray);
} // Recordinglock must be released before Display() is called

SetHelp(NULL);
Expand Down

0 comments on commit 7f2f23e

Please sign in to comment.