• M
    virISCSIGetSession: Don't leak memory · 9c037c6c
    Michal Privoznik 提交于
    This function runs an iscsi command and parses its output.
    However, due to the nature of things, virISCSIExtractSession()
    callback can be called multiple times. In each run it would
    allocate new memory and overwrite the variable where we keep
    pointer to it and thus leaking old allocations.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    9c037c6c
viriscsi.c 14.9 KB