Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential double-free in test3.c
The pointer to newargv passed to poptParseArgvString() may not be assigned to in case of an error, and it still may contain an address to already freed memory from the previous for loop iteration. To fix, add a return value check, similar to the one above it for the out pointer. Found by a static analyzer.
- Loading branch information