Project

General

Profile

Bug #9476

loader: Don't leak memory when displaying help.

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
2018-04-15
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Difficulty:
Medium
Tags:

Description

FreeBSD update: https://svnweb.freebsd.org/base?view=revision&revision=328289

Right now, we'll leak memory when we display a help topic because we don't free t, s, d that we've just used when breaking out of the loop.
NB: coverity just reported t, but s and d also leak.

CID: 1007776


Subtasks

Bug #9477: loader: cstyle update of common/commands.cClosedToomas Soome

Actions

History

#1

Updated by Electric Monk over 1 year ago

  • Status changed from In Progress to Closed

git commit 0a4f1df16f07808514bc5838bc55709f93f9e93e

commit  0a4f1df16f07808514bc5838bc55709f93f9e93e
Author: Toomas Soome <tsoome@me.com>
Date:   2018-05-16T10:03:11.000Z

    9476 loader: Don't leak memory when displaying help.
    9480 loader: commands.c should only use snprintf
    9481 loader: commands.c use __unused
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>

Also available in: Atom PDF