이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
로그인
Immanuel
/
nnn
보기
1
좋아요
0
포크
0
코드
이슈
0
풀 리퀘스트
0
릴리즈
0
위키
활동
소스 검색
Only free() after xstrdup()
master
sin
10 년 전
부모
6d04c5329e
커밋
35f3b250bb
1개의 변경된 파일
과
1개의 추가작업
그리고
2개의 파일을 삭제
분할 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
noice.c
+ 1
- 2
noice.c
파일 보기
@@ -128,12 +128,11 @@ xdirname(const char *path)
* original string if we lose track of it. */
tmp = xstrdup(path);
p = dirname(tmp);
free(tmp);
if (p == NULL)
printerr(1, "dirname");
/* Make sure this is a malloc(3)-ed string */
p = xstrdup(p);
free(tmp);
return p;
}
쓰기
미리보기
불러오는 중...
취소
저장