~vcs-imports/dpkg/master

Viewing all changes in revision 9610.

  • Committer: Guillem Jover
  • Date: 2021-01-04 03:21:39 UTC
  • Revision ID: git-v1:4dae5986f96d5b1d52947e9e35a92d2e713ef0e1
libdpkg: Fix passing the allocated instdir back into fsys_set_dir()

The code was free()ing the previously allocated string too early, then
trying to strdup() it. Instead use an intermediate to free() the old
pointer before overwriting it with the new one.

Fixes: commit f13aebc8a05da51a54da55d55b023ca8199a6471
Changelog: silent

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: